Class CharMatcher.BitSetMatcher

All Implemented Interfaces:
Predicate<Character>, Predicate<Character>
Enclosing class:
CharMatcher

private static final class CharMatcher.BitSetMatcher extends CharMatcher.NamedFastMatcher
Fast matcher using a BitSet table of matching characters.
  • Field Details

    • table

      private final BitSet table
  • Constructor Details

    • BitSetMatcher

      private BitSetMatcher(BitSet table, String description)
  • Method Details

    • matches

      public boolean matches(char c)
      Description copied from class: CharMatcher
      Determines a true or false value for the given character.
      Specified by:
      matches in class CharMatcher
    • setBits

      void setBits(BitSet bitSet)
      Description copied from class: CharMatcher
      Sets bits in table matched by this matcher.
      Overrides:
      setBits in class CharMatcher