- java.lang.Object
-
- java.lang.Enum<WordCase>
-
- org.apache.lucene.analysis.hunspell.WordCase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
WordCase.CharCase
-
Constructor Summary
Constructors Modifier Constructor Description private
WordCase()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static WordCase
caseOf(char[] word, int length)
(package private) static WordCase
caseOf(java.lang.CharSequence word)
(package private) static WordCase
caseOf(java.lang.CharSequence word, int length)
private static WordCase.CharCase
charCase(char c)
private static WordCase
get(WordCase.CharCase startCase, boolean seenUpper, boolean seenLower)
static WordCase
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WordCase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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"
-
-
Method Detail
-
values
public static WordCase[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WordCase c : WordCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WordCase valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
caseOf
static WordCase caseOf(char[] word, int length)
-
caseOf
static WordCase caseOf(java.lang.CharSequence word)
-
caseOf
static WordCase caseOf(java.lang.CharSequence word, int length)
-
get
private static WordCase get(WordCase.CharCase startCase, boolean seenUpper, boolean seenLower)
-
charCase
private static WordCase.CharCase charCase(char c)
-
-