com.github.ankurpathak.bean.constraints.NotContainConsecutivePeriod Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of username-validation Show documentation
Show all versions of username-validation Show documentation
Java library for username validation for general use
and with bean validation api.
package com.github.ankurpathak.bean.constraints;
/**
* Created by ankur on 04-02-2017.
*/
import com.github.ankurpathak.bean.constraints.validator.NotContainConsecutivePeriodValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Target({METHOD, FIELD, ANNOTATION_TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = NotContainConsecutivePeriodValidator.class)
@Documented
public @interface NotContainConsecutivePeriod {
String message() default "{com.github.ankurpathak.bean.constraints.NotContainConsecutivePeriod.message}";
Class>[] groups() default {};
Class extends Payload>[] payload() default {};
}