Annotation Interface Digits
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(Digits.Digitses.class)
public @interface Digits
The annotated element must be a number within accepted range.
Supported types are:
BigDecimalBigIntegerCharSequencebyte,short,int,long, and their respective wrapper types
null elements are considered valid.
- Author:
- Emmanuel Bernard
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalDigitsannotations on the same element. -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionintReturn maximum number of integral digits accepted for this number -
Optional Element Summary
Optional Elements