Class AbstractObjectSet<K>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()
      Returns a hash code for this set.
      abstract ObjectIterator<K> iterator()
      Returns a type-specific iterator on the elements of this collection.
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
      • Methods inherited from class java.lang.Object

        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

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
    • Method Detail

      • iterator

        public abstract ObjectIterator<K> iterator()
        Description copied from interface: ObjectCollection
        Returns a type-specific iterator on the elements of this collection.
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface ObjectCollection<K>
        Specified by:
        iterator in interface ObjectIterable<K>
        Specified by:
        iterator in interface ObjectSet<K>
        Specified by:
        iterator in interface java.util.Set<K>
        Specified by:
        iterator in class AbstractObjectCollection<K>
        Returns:
        a type-specific iterator on the elements of this collection.
        See Also:
        Iterable.iterator()
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<K>
        Specified by:
        equals in interface java.util.Set<K>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hash code for this set. The hash code of a set is computed by summing the hash codes of its elements.
        Specified by:
        hashCode in interface java.util.Collection<K>
        Specified by:
        hashCode in interface java.util.Set<K>
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        a hash code for this set.