Interface BooleanValidator
- All Superinterfaces:
- ObjectComponent<BooleanValidator,,- Boolean> - ValidatorComponent<BooleanValidator,- Boolean> 
public interface BooleanValidator
extends ValidatorComponent<BooleanValidator,Boolean>, ObjectComponent<BooleanValidator,Boolean>  
Validates the state of a 
Boolean.- 
Method SummaryMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponentgetValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponentand, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContext
- 
Method Details- 
isTrueBooleanValidator isTrue()Ensures that the value istrue.- Returns:
- this
- Throws:
- NullPointerException- if the value is null
- IllegalArgumentException- if the value is- false
 
- 
isFalseBooleanValidator isFalse()Ensures that the value isfalse.- Returns:
- this
- Throws:
- NullPointerException- if the value is null
- IllegalArgumentException- if the value is- true
 
 
-