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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The locale used for comparisons
    Maximum value, the empty string is interpreted as no maximum
    boolean
    Whether the maximum is inclusive
    Minimum value, the empty string is interpreted as no minimum
    boolean
    Whether the minimum is inclusive
  • Element Details

    • min

      String min
      Minimum value, the empty string is interpreted as no minimum
      Returns:
      Minimum value
      Default:
      ""
    • max

      String max
      Maximum value, the empty string is interpreted as no maximum
      Returns:
      Maximum value
      Default:
      ""
    • minInclusive

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

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

      String locale
      The locale used for comparisons
      Returns:
      Locale BCP47 tag
      Default:
      "en"