Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface Range

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@SupportedValidationTarget:ANNOTATED_ELEMENT
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@Min:0
@Max:9223372036854775807
@ReportAsSingleViolation
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

The annotated element has to be in the appropriate range. Apply on numeric values or string representation of the numeric value.
Author
Hardy Ferentschik

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
Range.List

Defines several @Range annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public long
max()

public String
public long
min()

public Class<? extends Payload>[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
maxback to summary
public long max()
Annotations
@OverridesAttribute
constraint:Max
name:value
messageback to summary
public String message()
minback to summary
public long min()
Annotations
@OverridesAttribute
constraint:Min
name:value
payloadback to summary
public Class<? extends Payload>[] payload()
org.hibernate.validator.constraints back to summary

public @Interface Range.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @Range annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Range[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Range[] value()