Annotation Interface StartsWith


@Retention(RUNTIME) @Target(FIELD) public @interface StartsWith
Annotation that marks that an options value must start with a given string
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Prefixes that the value must possess
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true then case of the value is ignored
    The locale used for comparisons
  • Element Details

    • prefixes

      String[] prefixes
      Prefixes that the value must possess
      Returns:
      String prefix
    • ignoreCase

      boolean ignoreCase
      If true then case of the value is ignored
      Returns:
      Ignore case
      Default:
      false
    • locale

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