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

    Modifier and Type Method Description
    boolean isTokenChar​(int c)
    Returns true if, and only if, the provided character matches this character class.
    static CharMatcher of​(byte unicodeCategory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • of

      public static CharMatcher of​(byte unicodeCategory)
    • isTokenChar

      public boolean isTokenChar​(int c)
      Description copied from interface: CharMatcher
      Returns true if, and only if, the provided character matches this character class.
      Specified by:
      isTokenChar in interface CharMatcher