Class HashableSet<V extends IHashable>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<V>, java.util.Collection<V>, java.util.Set<V>

    public final class HashableSet<V extends IHashable>
    extends java.util.AbstractSet<V>
    implements java.io.Serializable, java.lang.Cloneable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HashableSet()  
      HashableSet​(int initialCapacity)  
      HashableSet​(int initialCapacity, float loadFactor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(V e)  
      void clear()  
      HashableSet<V> clone()  
      boolean contains​(java.lang.Object object)  
      java.util.Iterator<V> iterator()  
      boolean remove​(java.lang.Object object)  
      int size()  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
    • Constructor Detail

      • HashableSet

        public HashableSet()
      • HashableSet

        public HashableSet​(int initialCapacity)
      • HashableSet

        public HashableSet​(int initialCapacity,
                           float loadFactor)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<V extends IHashable>
        Specified by:
        size in interface java.util.Set<V extends IHashable>
        Specified by:
        size in class java.util.AbstractCollection<V extends IHashable>
      • contains

        public boolean contains​(java.lang.Object object)
        Specified by:
        contains in interface java.util.Collection<V extends IHashable>
        Specified by:
        contains in interface java.util.Set<V extends IHashable>
        Overrides:
        contains in class java.util.AbstractCollection<V extends IHashable>
      • iterator

        public java.util.Iterator<V> iterator()
        Specified by:
        iterator in interface java.util.Collection<V extends IHashable>
        Specified by:
        iterator in interface java.lang.Iterable<V extends IHashable>
        Specified by:
        iterator in interface java.util.Set<V extends IHashable>
        Specified by:
        iterator in class java.util.AbstractCollection<V extends IHashable>
      • add

        public boolean add​(V e)
        Specified by:
        add in interface java.util.Collection<V extends IHashable>
        Specified by:
        add in interface java.util.Set<V extends IHashable>
        Overrides:
        add in class java.util.AbstractCollection<V extends IHashable>
      • remove

        public boolean remove​(java.lang.Object object)
        Specified by:
        remove in interface java.util.Collection<V extends IHashable>
        Specified by:
        remove in interface java.util.Set<V extends IHashable>
        Overrides:
        remove in class java.util.AbstractCollection<V extends IHashable>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<V extends IHashable>
        Specified by:
        clear in interface java.util.Set<V extends IHashable>
        Overrides:
        clear in class java.util.AbstractCollection<V extends IHashable>
      • clone

        public HashableSet<V> clone()
        Overrides:
        clone in class java.lang.Object