Top Description Inners Methods
javax.validation.constraints

public @Interface Digits

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 within accepted range Supported types are:

null elements are considered valid.

Author
Emmanuel Bernard

Nested and Inner Type Summary

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

Defines several Digits annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

maximum number of fractional digits accepted for this number
fraction
()

public Class<?>[]
public int

Returns:

maximum number of integral digits accepted for this number
integer
()

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

Method Detail

fractionback to summary
public int fraction()
Returns:int

maximum number of fractional digits accepted for this number

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

maximum number of integral digits accepted for this number

messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
javax.validation.constraints back to summary

public @Interface Digits.List

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

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

Method Summary

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

Method Detail

valueback to summary
public Digits[] value()