Class GroupHead.CharacterRange

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char end  
      private char start  
    • Constructor Summary

      Constructors 
      Constructor Description
      CharacterRange​(char start, char end)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(char c)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • start

        private final char start
      • end

        private final char end
    • Constructor Detail

      • CharacterRange

        CharacterRange​(char start,
                       char end)
    • Method Detail

      • matches

        public final boolean matches​(char c)
        Specified by:
        matches in interface GroupHead.CharacterPattern
        Parameters:
        c - the character to test
        Returns:
        returns true if the character matches a pattern.