Class IdentityHashSet<E>

  • Type Parameters:
    E - The element type
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>

    public class IdentityHashSet<E>
    extends MapBackedSet<E>
    An IdentityHashMap-backed Set.
    Author:
    Apache MINA Project
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IdentityHashSet()
      Creates a new IdentityHashSet instance
      IdentityHashSet​(int expectedMaxSize)
      Creates a new IdentityHashSet instance
      IdentityHashSet​(java.util.Collection<E> c)
      Creates a new IdentityHashSet instance
    • Method Summary

      • 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

        clone, 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

      • IdentityHashSet

        public IdentityHashSet()
        Creates a new IdentityHashSet instance
      • IdentityHashSet

        public IdentityHashSet​(int expectedMaxSize)
        Creates a new IdentityHashSet instance
        Parameters:
        expectedMaxSize - The maximum size for the map
      • IdentityHashSet

        public IdentityHashSet​(java.util.Collection<E> c)
        Creates a new IdentityHashSet instance
        Parameters:
        c - The elements to put in the map