Class AssertTrueValidator
java.lang.Object
org.hibernate.validator.internal.constraintvalidators.bv.AssertTrueValidator
- All Implemented Interfaces:
ConstraintValidator<AssertTrue,Boolean>
Validates that the value passed is true
- Author:
- Alaa Nassef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(Boolean bool, ConstraintValidatorContext constraintValidatorContext) Implements the validation logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize
-
Constructor Details
-
AssertTrueValidator
public AssertTrueValidator()
-
-
Method Details
-
isValid
Description copied from interface:ConstraintValidatorImplements the validation logic. The state ofvaluemust not be altered.This method can be accessed concurrently, thread-safety must be ensured by the implementation.
- Specified by:
isValidin interfaceConstraintValidator<AssertTrue,Boolean> - Parameters:
bool- object to validateconstraintValidatorContext- context in which the constraint is evaluated- Returns:
falseifvaluedoes not pass the constraint
-