Annotation Interface ConsistentNameParameters
@Documented
@Constraint(validatedBy=ConsistentNameParametersValidator.class)
@Target({METHOD,CONSTRUCTOR})
@Retention(RUNTIME)
public @interface ConsistentNameParameters
This is an example of a cross-parameter constraint. Where
the state of multiple parameters in context with one another is used
to determine if valid.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
This validator verifies the condition where either firstName or lastName is supplied as the members of a method call. -
Optional Element Summary
Optional Elements