Skip to content

Instantly share code, notes, and snippets.

/.java Secret

Created Jul 9, 2015
Embed
What would you like to do?
@Constraint(validatedBy = ...)
@Target({METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER}
@Retention(RUNTIME)
@Repeatable(MyCustomConstraint.List.class)
public @interface MyCustomConstraint {
String myCustomValue();
public @interface List {
MyCustomConstraint[] value();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.