public class FutureValidatorForReadableInstant extends Object implements ConstraintValidator<Future,org.joda.time.ReadableInstant>
import org.joda.time.ReadableInstant
is in the future.Constructor and Description |
---|
FutureValidatorForReadableInstant() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(Future constraintAnnotation)
Initialize the validator in preparation for isValid calls.
|
boolean |
isValid(org.joda.time.ReadableInstant value,
ConstraintValidatorContext context)
Implement the validation logic.
|
public void initialize(Future constraintAnnotation)
ConstraintValidator
initialize
in interface ConstraintValidator<Future,org.joda.time.ReadableInstant>
constraintAnnotation
- annotation instance for a given constraint declarationpublic boolean isValid(org.joda.time.ReadableInstant 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.ReadableInstant>
value
- object to validatecontext
- context in which the constraint is evaluatedvalue
does not pass the constraintCopyright © 2018 JBoss by Red Hat. All rights reserved.