|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
net.spy.util.WeakHashSet
HashSet backed by a WeakHashMap.
| Constructor Summary | |
WeakHashSet()
Get an instance of WeakHashSet. |
|
WeakHashSet(Collection c)
Get a WeakHashSet with the contents from the given Collection. |
|
WeakHashSet(int n)
Create a WeakHashSet with the given capacity. |
|
| Method Summary | |
boolean |
add(Object o)
Add this object to this Set if it's not already present. |
void |
clear()
Remove all entries from this Set. |
boolean |
contains(Object o)
True if this Set contains the given Object. |
boolean |
isEmpty()
True if this set contains no elements. |
Iterator |
iterator()
Get the Iterator for the backing Map. |
boolean |
remove(Object o)
Remove the given object from this Set. |
int |
size()
Get the number of keys currently contained in this Set. |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
addAll, containsAll, retainAll, toArray, toArray |
| Constructor Detail |
public WeakHashSet()
public WeakHashSet(int n)
n - the capacitypublic WeakHashSet(Collection c)
c - the collection| Method Detail |
public Iterator iterator()
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public boolean add(Object o)
o - the object to add
public boolean remove(Object o)
o - Object to be removed
public void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||