Annotation Type Requires
Requires annotation is used to express
Constraint.
Can be used directly on a type or method, but also can be used to annotate other annotations.
When used to annotate an other annotation, the target annotation defines the requirement context (which is passed to
the Constraint.
In all other cases, there is no context.-
Optional Element Summary
Optional Elements
-
Element Details
-
value
Class<? extends Constraint>[] value- Default:
- {}
-