Class IdentityHashSet<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>, Set<T>

    public class IdentityHashSet<T>
    extends AbstractSet<T>
    implements Set<T>

    A Set implementation based on reference (not object) equality. This is an intentional violation of the Set.equals(Object) contract for specialized purposes. Uses a backing instance of IdentityHashMap.

    Author:
    Brennan Spies