Class IdentitySet<T>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
com.atlassian.jira.util.collect.IdentitySet<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, Set<T>

public final class IdentitySet<T> extends AbstractSet<T> implements Set<T>
A Set implementation that considers objects equal if an only if they are the same instance. The Object.equals(Object) and Object.hashCode() methods of the stored objects are ignored.

This implementation uses another Set to store IdentitySet.IdentityReference objects for each object in the set.