Annotation Interface ValueRange


@Retention(RUNTIME) @Documented public @interface ValueRange
Defines a predicate that matches a contiguous range of values of a simple field.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Get whether the max() is an inclusive or exclusive upper bound.
    boolean
    Get whether the min() is an inclusive or exclusive lower bound.
    Get the end of the value range.
    Get the beginning of the value range.
  • Element Details

    • min

      String min
      Get the beginning of the value range.

      The value must be a valid String encoding of the associated field, acceptable to Encoding.fromString().

      Returns:
      value range minimum, or empty string for no minimum
      Default:
      ""
    • max

      String max
      Get the end of the value range.

      The value must be a valid String encoding of the associated field, acceptable to Encoding.fromString().

      Returns:
      value range maximum, or empty string for no maximum
      Default:
      ""
    • inclusiveMin

      boolean inclusiveMin
      Get whether the min() is an inclusive or exclusive lower bound.
      Returns:
      true if lower bound is inclusive, false if exclusive
      Default:
      true
    • inclusiveMax

      boolean inclusiveMax
      Get whether the max() is an inclusive or exclusive upper bound.
      Returns:
      true if upper bound is inclusive, false if exclusive
      Default:
      false