org.castor.util
public final class IdentitySet extends Object implements Set
Set
interface.
Since: 0.9.9
Version: $Revision: 6230 $ $Date: 2006-04-13 10:49:49 -0600 (Thu, 13 Apr 2006) $
| Nested Class Summary | |
|---|---|
| class | IdentitySet.Entry
An entry of the IdentitySet. |
| Constructor Summary | |
|---|---|
| IdentitySet()
Construct a set with default capacity. | |
| IdentitySet(int capacity)
Construct a set with given capacity.
| |
| Method Summary | |
|---|---|
| boolean | add(Object key) |
| boolean | addAll(Collection c)
This optional method has not been implemented for IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
|
| void | clear() |
| boolean | contains(Object key) |
| boolean | containsAll(Collection c)
In contrast with the design contract of the Set interface this method
has not been implemented and throws a UnsupportedOperationException.
|
| boolean | isEmpty() |
| Iterator | iterator() |
| boolean | remove(Object key) |
| boolean | removeAll(Collection c)
This optional method has not been implemented for IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
|
| boolean | retainAll(Collection c)
This optional method has not been implemented for IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
|
| int | size() |
| Object[] | toArray() |
| Object[] | toArray(Object[] a) |
Parameters: capacity The capacity of entries this set should be initialized with.
See Also: java.util.Collection#add(java.lang.Object)
IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
{@inheritDoc }See Also: java.util.Set#addAll
See Also: java.util.Collection#clear()
See Also: java.util.Collection#contains(java.lang.Object)
Set interface this method
has not been implemented and throws a UnsupportedOperationException.
{@inheritDoc }See Also: java.util.Set#containsAll
See Also: java.util.Collection#isEmpty()
See Also: java.util.Collection#iterator()
See Also: java.util.Collection#remove(java.lang.Object)
IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
{@inheritDoc }See Also: java.util.Set#removeAll
IdentitySet instead
it throws a UnsupportedOperationException as defined in the
Set interface.
{@inheritDoc }See Also: java.util.Set#retainAll
See Also: java.util.Collection#size()
See Also: java.util.Collection#toArray()
See Also: java.util.Collection#toArray(java.lang.Object[])