java.lang.Object
java.lang.Enum<WordCase>
org.apache.lucene.analysis.hunspell.WordCase
All Implemented Interfaces:
Serializable, Comparable<WordCase>, Constable

enum WordCase extends Enum<WordCase>
  • Enum Constant Details

    • UPPER

      public static final WordCase UPPER
      e.g. WORD
    • TITLE

      public static final WordCase TITLE
      e.g. Word
    • LOWER

      public static final WordCase LOWER
      e.g. word
    • MIXED

      public static final WordCase MIXED
      e.g. WoRd or wOrd
    • NEUTRAL

      public static final WordCase NEUTRAL
      e.g "-" or "/" or "42"
  • Constructor Details

    • WordCase

      private WordCase()
  • Method Details

    • values

      public static WordCase[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WordCase valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • caseOf

      static WordCase caseOf(char[] word, int length)
    • caseOf

      static WordCase caseOf(CharSequence word)
    • caseOf

      static WordCase caseOf(CharSequence word, int length)
    • get

      private static WordCase get(WordCase.CharCase startCase, boolean seenUpper, boolean seenLower)
    • charCase

      private static WordCase.CharCase charCase(char c)