Annotation Type 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
      java.lang.String[] prefixes
      Prefixes that the value must possess
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean ignoreCase
      If true then case of the value is ignored
      java.lang.String locale
      The locale used for comparisons
    • Element Detail

      • prefixes

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

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