Top Description Inners Methods
jakarta.validation.constraints

public @Interface Max

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

The annotated element must be a number whose value must be lower or equal to the specified maximum.

Supported types are:

Note that double and float are not supported due to rounding errors (some providers might provide some approximative support).

null elements are considered valid.

Author
Emmanuel Bernard

Nested and Inner Type Summary

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

Defines several Max annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
public long

Returns:

value the element must be lower or equal to
value
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
valueback to summary
public long value()
Returns:long

value the element must be lower or equal to

jakarta.validation.constraints back to summary

public @Interface Max.List

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

Defines several Max annotations on the same element.
See Also
Max

Method Summary

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

Method Detail

valueback to summary
public Max[] value()