public class

IdentitySet

extends Object
implements Set<E>
java.lang.Object
   ↳ org.hibernate.util.IdentitySet

Class Overview

Set implementation that use == instead of equals() as its comparison mechanism. This is achieved by internally using an IdentityHashMap.

Summary

Public Constructors
IdentitySet()
Create an IdentitySet with default sizing.
IdentitySet(int sizing)
Create an IdentitySet with the given sizing.
Public Methods
boolean add(Object o)
boolean addAll(Collection c)
void clear()
boolean contains(Object o)
boolean containsAll(Collection c)
boolean isEmpty()
Iterator iterator()
boolean remove(Object o)
boolean removeAll(Collection c)
boolean retainAll(Collection c)
int size()
Object[] toArray()
Object[] toArray(Object[] a)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.Set

Public Constructors

public IdentitySet ()

Create an IdentitySet with default sizing.

public IdentitySet (int sizing)

Create an IdentitySet with the given sizing.

Parameters
sizing The sizing of the set to create.

Public Methods

public boolean add (Object o)

public boolean addAll (Collection c)

public void clear ()

public boolean contains (Object o)

public boolean containsAll (Collection c)

public boolean isEmpty ()

public Iterator iterator ()

public boolean remove (Object o)

public boolean removeAll (Collection c)

public boolean retainAll (Collection c)

public int size ()

public Object[] toArray ()

public Object[] toArray (Object[] a)