@Retention(value=CLASS)
@Target(value={METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,ANNOTATION_TYPE})
public @interface Pattern
@Pattern("[\\dA-Fa-f]{8}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{4}-[\\dA-Fa-f]{12}") @interface UUID {}
RegExp
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
A regular expression that matches all the valid string literals that assigned to the annotated variables,
passed as arguments to the annotated parameters, or returned from the annotated methods.
|