Class HashSet4

  • All Implemented Interfaces:
    Iterable4, Set4

    public class HashSet4
    extends java.lang.Object
    implements Set4
    • Constructor Summary

      Constructors 
      Constructor Description
      HashSet4()  
      HashSet4​(int count)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(java.lang.Object obj)  
      void clear()  
      boolean contains​(java.lang.Object obj)  
      boolean isEmpty()  
      Iterator4 iterator()  
      boolean remove​(java.lang.Object obj)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HashSet4

        public HashSet4()
      • HashSet4

        public HashSet4​(int count)
    • Method Detail

      • add

        public boolean add​(java.lang.Object obj)
        Specified by:
        add in interface Set4
      • clear

        public void clear()
        Specified by:
        clear in interface Set4
      • contains

        public boolean contains​(java.lang.Object obj)
        Specified by:
        contains in interface Set4
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Set4
      • remove

        public boolean remove​(java.lang.Object obj)
        Specified by:
        remove in interface Set4
      • size

        public int size()
        Specified by:
        size in interface Set4
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object