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