javax.validation.constraints.CompareTo 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.CompareToValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
@Documented
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = CompareToValidator.class)
public @interface CompareTo {
String source();
String destination();
String target() default "";
boolean equals() default false;
String message() default "{javax.validation.constraints.CompareTo.message}";
Class[] groups() default {};
Class[] payload() default {};
@Documented
@Target({ ElementType.TYPE, ElementType.ANNOTATION_TYPE })
@Retention(RetentionPolicy.RUNTIME)
@interface List {
CompareTo[] value();
}
}