Top Description Inners Methods
jakarta.validation.constraints

public @Interface DecimalMin

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 higher or equal to the specified minimum.

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
DecimalMin.List

Defines several DecimalMin annotations on the same element.

Method Summary

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

Returns:

true if the value must be higher or equal to the specified minimum, false if the value must be higher
inclusive
()

Specifies whether the specified minimum is inclusive or exclusive.

public String
public Class<? extends Payload>[]
public String

Returns:

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

The String representation of the min value according to the BigDecimal string representation.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
inclusiveback to summary
public boolean inclusive()

Specifies whether the specified minimum is inclusive or exclusive. By default, it is inclusive.

Returns:boolean

true if the value must be higher or equal to the specified minimum, false if the value must be higher

Since
1.1
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
valueback to summary
public String value()

The String representation of the min value according to the BigDecimal string representation.

Returns:String

value the element must be higher or equal to

jakarta.validation.constraints back to summary

public @Interface DecimalMin.List

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

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

Method Summary

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

Method Detail

valueback to summary
public DecimalMin[] value()