Package org.opensearch.analysis.common
Class CharMatcher.ByUnicodeCategory
- java.lang.Object
-
- org.opensearch.analysis.common.CharMatcher.ByUnicodeCategory
-
- All Implemented Interfaces:
CharMatcher
- Enclosing interface:
- CharMatcher
public static class CharMatcher.ByUnicodeCategory extends java.lang.Object implements CharMatcher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opensearch.analysis.common.CharMatcher
CharMatcher.Basic, CharMatcher.Builder, CharMatcher.ByUnicodeCategory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTokenChar(int c)Returns true if, and only if, the provided character matches this character class.static CharMatcherof(byte unicodeCategory)
-
-
-
Method Detail
-
of
public static CharMatcher of(byte unicodeCategory)
-
isTokenChar
public boolean isTokenChar(int c)
Description copied from interface:CharMatcherReturns true if, and only if, the provided character matches this character class.- Specified by:
isTokenCharin interfaceCharMatcher
-
-