Class CharMatcher.InRange

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

private static final class CharMatcher.InRange extends CharMatcher.FastMatcher
  • Field Details

    • startInclusive

      private final char startInclusive
    • endInclusive

      private final char endInclusive
  • Constructor Details

    • InRange

      InRange(char startInclusive, char endInclusive)
  • 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 table)
      Description copied from class: CharMatcher
      Sets bits in table matched by this matcher.
      Overrides:
      setBits in class CharMatcher
    • toString

      public String toString()
      Description copied from class: CharMatcher
      Returns a string representation of this CharMatcher, such as CharMatcher.or(WHITESPACE, JAVA_DIGIT).
      Overrides:
      toString in class CharMatcher