@Target(value=PARAMETER)
@Retention(value=SOURCE)
public static @interface Validate.With
This annotation also triggers a null-check before the custom validation.
Note: This works with all types, but the parameter type has to match the method signature.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value
Name of method that should be used to validate the parameter.
|