Top Description Inners Methods
javax.validation.constraints

public @Interface FutureOrPresent

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@Documented
@Constraint
validatedBy:
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

The annotated element must be an instant, date or time in the present or in the future.

Now is defined by the ClockProvider attached to the Validator or ValidatorFactory. The default clockProvider defines the current time according to the virtual machine, applying the current default time zone if needed.

The notion of present here is defined relatively to the type on which the constraint is used. For instance, if the constraint is on a Year, present would mean the whole current year.

Supported types are:

null elements are considered valid.

Author
Guillaume Smet
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
FutureOrPresent.List

Defines several FutureOrPresent annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
javax.validation.constraints back to summary

public @Interface FutureOrPresent.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several FutureOrPresent annotations on the same element.
See Also
FutureOrPresent

Method Summary

Modifier and TypeMethod and Description
public FutureOrPresent[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public FutureOrPresent[] value()