Enum TokenCharacterKind
- java.lang.Object
-
- java.lang.Enum<TokenCharacterKind>
-
- com.azure.search.documents.indexes.models.TokenCharacterKind
-
- All Implemented Interfaces:
Serializable
,Comparable<TokenCharacterKind>
public enum TokenCharacterKind extends Enum<TokenCharacterKind>
Defines values for TokenCharacterKind.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIGIT
Enum value digit.LETTER
Enum value letter.PUNCTUATION
Enum value punctuation.SYMBOL
Enum value symbol.WHITESPACE
Enum value whitespace.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenCharacterKind
fromString(String value)
Parses a serialized value to a TokenCharacterKind instance.String
toString()
static TokenCharacterKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static TokenCharacterKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LETTER
public static final TokenCharacterKind LETTER
Enum value letter.
-
DIGIT
public static final TokenCharacterKind DIGIT
Enum value digit.
-
WHITESPACE
public static final TokenCharacterKind WHITESPACE
Enum value whitespace.
-
PUNCTUATION
public static final TokenCharacterKind PUNCTUATION
Enum value punctuation.
-
SYMBOL
public static final TokenCharacterKind SYMBOL
Enum value symbol.
-
-
Method Detail
-
values
public static TokenCharacterKind[] 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 (TokenCharacterKind c : TokenCharacterKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenCharacterKind valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
public static TokenCharacterKind fromString(String value)
Parses a serialized value to a TokenCharacterKind instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed TokenCharacterKind object, or null if unable to parse.
-
toString
public String toString()
- Overrides:
toString
in classEnum<TokenCharacterKind>
-
-