Class CharSetOfOne

  • All Implemented Interfaces:
    CharSet

    final class CharSetOfOne
    extends java.lang.Object
    implements CharSet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char ch  
    • Constructor Summary

      Constructors 
      Constructor Description
      CharSetOfOne​(java.util.Set<java.lang.Character> set)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(char ch)
      Returns true if the set contains the specified character.
      • Methods inherited from class java.lang.Object

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

      • ch

        private final char ch
    • Constructor Detail

      • CharSetOfOne

        CharSetOfOne​(java.util.Set<java.lang.Character> set)
    • Method Detail

      • containsKey

        public boolean containsKey​(char ch)
        Description copied from interface: CharSet
        Returns true if the set contains the specified character.
        Specified by:
        containsKey in interface CharSet
        Parameters:
        ch - a character
        Returns:
        true if the byte is in the set