Annotation Interface Range


Validates Integer, Long, Short, Float, Double, BigInteger, BigDecimal value to be in specified range
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    double
     
    double
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • from

      double from
      Returns:
      minimum value should have (boundary rule boundary())
    • to

      double to
      Returns:
      maximum value should have (boundary rule boundary())
    • boundary

      Range.Boundary boundary
      Returns:
      boundary to apply when validating corner cases for value
      Default:
      INCLUSIVE_INCLUSIVE