java.util.Collections.newSetFromMap(new java.util.IdentityHashMap())
@Deprecated
public class IdentityHashSet<E>
extends java.util.AbstractSet<E>
implements java.util.Set<E>
Modifier and Type | Field and Description |
---|---|
protected java.util.IdentityHashMap<E,E> |
delegate
Deprecated.
|
Constructor and Description |
---|
IdentityHashSet()
Deprecated.
Creates a new, empty IdentityHashSet.
|
IdentityHashSet(java.util.Collection<E> original)
Deprecated.
Creates a new IdentityHashSet containing the same elements as the given
collection.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Deprecated.
|
void |
clear()
Deprecated.
|
boolean |
contains(java.lang.Object o)
Deprecated.
|
boolean |
equals(java.lang.Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
java.util.Iterator<E> |
iterator()
Deprecated.
|
boolean |
remove(java.lang.Object o)
Deprecated.
|
int |
size()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
addAll, containsAll, isEmpty, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public IdentityHashSet()
public IdentityHashSet(java.util.Collection<E> original)
original
- The original collection whose elements to inheritpublic int size()
public boolean contains(java.lang.Object o)
public java.util.Iterator<E> iterator()
public boolean add(E o)
public boolean remove(java.lang.Object o)
public void clear()
public int hashCode()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
toString
in class java.util.AbstractCollection<E>