public class WeakHashSet extends HashSet
Constructor and Description |
---|
WeakHashSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o)
Adds the specified element to this set if it is not already
present.
|
boolean |
contains(Object o)
Returns
true if this set contains the specified element. |
Iterator |
iterator()
Returns an iterator over the elements in this set.
|
boolean |
remove(Object o)
Removes the given element from this set if it is present.
|
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
parallelStream, removeIf, stream
public Iterator iterator()
public boolean contains(Object o)
true
if this set contains the specified element.public boolean add(Object o)
public boolean remove(Object o)
Copyright © 2019. All rights reserved.