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