java.lang.Object | |||
↳ | java.util.AbstractCollection<E> | ||
↳ | java.util.AbstractSet<E> | ||
↳ | com.atlassian.jira.util.collect.IdentitySet<T> |
A java.util.Set implementation that considers objects equal if an only if they are the same instance. The
equals(Object)
and hashCode()
methods of the stored objects are ignored.
IdentitySet.IdentityReference
objects for each object in the set.
Nested Classes | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
IdentitySet.IdentityReference<T> | Stores a reference to any Object. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new set using the passed set as the store.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new identity set.
| |||||||||||
Create a new identity set.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.AbstractSet
| |||||||||||||||||||||||||||||||||||||||||
From class
java.util.AbstractCollection
| |||||||||||||||||||||||||||||||||||||||||
From class java.lang.Object | |||||||||||||||||||||||||||||||||||||||||
From interface
java.lang.Iterable
| |||||||||||||||||||||||||||||||||||||||||
From interface
java.util.Collection
| |||||||||||||||||||||||||||||||||||||||||
From interface
java.util.Set
|
Create a new set using the passed set as the store. The passed set should not be used by the caller while the new IdentitySet is in use.
delegateSet | the set actually store the objects. |
---|
Create a new identity set. The elements in the returned set will be stored in addition order.