Class CharMatcher.InRange

    • Field Detail

      • startInclusive

        private final char startInclusive
      • endInclusive

        private final char endInclusive
    • Constructor Detail

      • InRange

        InRange​(char startInclusive,
                char endInclusive)
    • Method Detail

      • 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
      • toString

        public java.lang.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