public class IdentityHashSet<E>
extends java.util.AbstractSet<E>
implements java.util.Set<E>, java.lang.Cloneable, java.io.Serializable
| Constructor and Description |
|---|
IdentityHashSet() |
IdentityHashSet(java.util.Collection<? extends E> c) |
IdentityHashSet(int expectedMaxSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds the specified element to this set if it is not already present.
|
void |
clear()
Removes all of the elements from this set.
|
IdentityHashSet<E> |
clone()
Returns a shallow copy of this HashSet instance: the elements
themselves are not cloned.
|
boolean |
contains(java.lang.Object o)
Returns true if this set contains the specified element.
|
boolean |
isEmpty()
Returns true if this set contains no elements.
|
java.util.Iterator<E> |
iterator()
Returns an iterator over the elements in this set.
|
boolean |
remove(java.lang.Object o)
Removes the specified element from this set if it is present.
|
int |
size()
Returns the number of elements in this set (its cardinality).
|
addAll, containsAll, retainAll, toArray, toArray, toStringpublic IdentityHashSet()
public IdentityHashSet(java.util.Collection<? extends E> c)
public IdentityHashSet(int expectedMaxSize)
public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>iterator in class java.util.AbstractCollection<E>ConcurrentModificationExceptionpublic int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public boolean add(E e)
public boolean remove(java.lang.Object o)
public void clear()
public IdentityHashSet<E> clone()
clone in class java.lang.ObjectCopyright © 2015 Molindo GmbH. All Rights Reserved.