Top Description Inners Methods
jakarta.validation.constraints

public @Interface Size

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 size must be between the specified boundaries (included).

Supported types are:

null elements are considered valid.

Author
Emmanuel Bernard

Nested and Inner Type Summary

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

Defines several Size annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public int

Returns:

size the element must be lower or equal to
max
()

public String
public int

Returns:

size the element must be higher or equal to
min
()

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

Method Detail

groupsback to summary
public Class<?>[] groups()
maxback to summary
public int max()
Returns:int

size the element must be lower or equal to

messageback to summary
public String message()
minback to summary
public int min()
Returns:int

size the element must be higher or equal to

payloadback to summary
public Class<? extends Payload>[] payload()
jakarta.validation.constraints back to summary

public @Interface Size.List

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

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

Method Summary

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

Method Detail

valueback to summary
public Size[] value()