Package org.opensearch.analysis.common
Enum CharMatcher.Basic
- java.lang.Object
-
- java.lang.Enum<CharMatcher.Basic>
-
- org.opensearch.analysis.common.CharMatcher.Basic
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CharMatcher.Basic>,CharMatcher
- Enclosing interface:
- CharMatcher
public static enum CharMatcher.Basic extends java.lang.Enum<CharMatcher.Basic> implements CharMatcher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opensearch.analysis.common.CharMatcher
CharMatcher.Basic, CharMatcher.Builder, CharMatcher.ByUnicodeCategory
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIGITLETTERPUNCTUATIONSYMBOLWHITESPACE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CharMatcher.BasicvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static CharMatcher.Basic[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.opensearch.analysis.common.CharMatcher
isTokenChar
-
-
-
-
Enum Constant Detail
-
LETTER
public static final CharMatcher.Basic LETTER
-
DIGIT
public static final CharMatcher.Basic DIGIT
-
WHITESPACE
public static final CharMatcher.Basic WHITESPACE
-
PUNCTUATION
public static final CharMatcher.Basic PUNCTUATION
-
SYMBOL
public static final CharMatcher.Basic SYMBOL
-
-
Method Detail
-
values
public static CharMatcher.Basic[] 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 (CharMatcher.Basic c : CharMatcher.Basic.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CharMatcher.Basic 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
-
-