javax.validation.constraints.Equals Maven / Gradle / Ivy
package javax.validation.constraints;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.EqualsValidator;
import javax.validation.Payload;
@Documented
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = EqualsValidator.class)
public @interface Equals {
String[] value() default {};
String source();
String target();
String message() default "{javax.validation.constraints.Equals.message}";
Class[] groups() default {};
Class[] payload() default {};
@Documented
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@interface List {
Equals[] value();
}
}