
org.biins.validation.collection.constraints.ElementsDecimalMax Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collection-validation Show documentation
Show all versions of collection-validation Show documentation
Support of JSR-303 validation for collection elements
The newest version!
package org.biins.validation.collection.constraints;
import org.biins.validation.collection.constraints.impl.ElementsDecimalMaxConstraintValidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.DecimalMax;
import java.lang.annotation.*;
/**
* @see DecimalMax
*
* @author Martin Janys
*/
@Documented
@Constraint(validatedBy = ElementsDecimalMaxConstraintValidator.class)
@Target({
ElementType.METHOD,
ElementType.FIELD
})
@Retention(RetentionPolicy.RUNTIME)
@ElementsValidator
public @interface ElementsDecimalMax {
DecimalMax value();
Class element() default Number.class;
String message() default "{validation.collection.constraints.ElementsDecimalMax.message}";
Class[] groups() default {};
Class[] payload() default {};
}