Annotation Type Digits

    public @interface Digits
    The annotated element must be a number within accepted range Supported types are:
    • BigDecimal
    • BigInteger
    • CharSequence
    • byte, short, int, long, and their respective wrapper types

    null elements are considered valid.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      int fraction  
      int integer  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?>[] groups  
      java.lang.String message  
      java.lang.Class<? extends Payload>[] payload  
    • Element Detail

      • integer

        int integer
        maximum number of integral digits accepted for this number
      • fraction

        int fraction
        maximum number of fractional digits accepted for this number
      • message

        java.lang.String message
      • groups

        java.lang.Class<?>[] groups
      • payload

        java.lang.Class<? extends Payload>[] payload