org.hibernate.util
Class IdentitySet
java.lang.Object
org.hibernate.util.IdentitySet
- Set
public class IdentitySet
extends java.lang.Object
implements Set
Set implementation that use == instead of equals() as its comparison
mechanism. This is achieved by internally using an IdentityHashMap.
IdentitySet() - Create an IdentitySet with default sizing.
|
IdentitySet(int sizing) - Create an IdentitySet with the given sizing.
|
IdentitySet
public IdentitySet()
Create an IdentitySet with default sizing.
IdentitySet
public IdentitySet(int sizing)
Create an IdentitySet with the given sizing.
sizing
- The sizing of the set to create.
add
public boolean add(Object o)
addAll
public boolean addAll(Collection c)
contains
public boolean contains(Object o)
containsAll
public boolean containsAll(Collection c)
isEmpty
public boolean isEmpty()
iterator
public Iterator iterator()
remove
public boolean remove(Object o)
removeAll
public boolean removeAll(Collection c)
retainAll
public boolean retainAll(Collection c)
toArray
public Object[] toArray()
toArray
public Object[] toArray(Object[] a)