Annotation Type LexicalRange


  • @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
      java.lang.String locale
      The locale used for comparisons
      java.lang.String max
      Maximum value, the empty string is interpreted as no maximum
      boolean maxInclusive
      Whether the maximum is inclusive
      java.lang.String min
      Minimum value, the empty string is interpreted as no minimum
      boolean minInclusive
      Whether the minimum is inclusive
    • Element Detail

      • min

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

        java.lang.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

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