Class IdentityHashSet<E>

Type Parameters:
E - The element type
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>

public class IdentityHashSet<E> extends MapBackedSet<E>
An IdentityHashMap-backed Set.
See Also:
  • Field Details

  • Constructor Details

    • 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(Collection<E> c)
      Creates a new IdentityHashSet instance
      Parameters:
      c - The elements to put in the map