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, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringpublic 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 © 2015. All rights reserved.