public class DecimalMinValidatorForCharSequence extends Object implements ConstraintValidator<DecimalMin,CharSequence>
Constructor and Description |
---|
DecimalMinValidatorForCharSequence() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(DecimalMin minValue)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(CharSequence value,
ConstraintValidatorContext constraintValidatorContext)
Implement the validation logic.
|
public void initialize(DecimalMin minValue)
ConstraintValidator
initialize
in interface ConstraintValidator<DecimalMin,CharSequence>
minValue
- annotation instance for a given constraint declarationpublic boolean isValid(CharSequence value, ConstraintValidatorContext constraintValidatorContext)
ConstraintValidator
value
must not be altered.
This method can be accessed concurrently, thread-safety must be ensured
by the implementation.isValid
in interface ConstraintValidator<DecimalMin,CharSequence>
value
- object to validateconstraintValidatorContext
- context in which the constraint is evaluatedvalue
does not pass the constraintCopyright © 2018 JBoss by Red Hat. All rights reserved.