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 ObjectComponent
getValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualToMethods declared in interface 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
-