Annotation Type DoubleRange


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface DoubleRange
    Annotation that marks values as being restricted to a given double range
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      double max
      Maximum value
      boolean maxInclusive
      Whether the maximum value is inclusive
      double min
      Minimum value
      boolean minInclusive
      Whether the minimum value is inclusive
    • Element Detail

      • min

        double min
        Minimum value
        Returns:
        Minimum value
        Default:
        4.9E-324
      • max

        double max
        Maximum value
        Returns:
        Maximum value
        Default:
        1.7976931348623157E308
      • minInclusive

        boolean minInclusive
        Whether the minimum value is inclusive
        Returns:
        True if inclusive, false if exclusive
        Default:
        true
      • maxInclusive

        boolean maxInclusive
        Whether the maximum value is inclusive
        Returns:
        True if inclusive, false if exclusive
        Default:
        true