@Documented
@Retention(value=RUNTIME)
@ValidatorClass(value=PatternValidator.class)
public @interface Pattern
Indicates that the annotated element should follow a given pattern. If the
element is not a String, its String representation (toString
)
will be used.
- Since:
- 5.1