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 Summary
Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponent
getValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualTo
Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponent
and, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContext
-
Method Details
-
isTrue
BooleanValidator isTrue()Ensures that the value istrue
.- Returns:
- this
- Throws:
NullPointerException
- if the value is nullIllegalArgumentException
- if the value isfalse
-
isFalse
BooleanValidator isFalse()Ensures that the value isfalse
.- Returns:
- this
- Throws:
NullPointerException
- if the value is nullIllegalArgumentException
- if the value istrue
-