|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--org.openide.util.WeakSet
Set which holds its members by using of WeakReferences. MT level: unsafe.
| Constructor Summary | |
WeakSet()
Constructs a new set. |
|
WeakSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
WeakSet(int initialCapacity)
Constructs a new, empty set; |
|
WeakSet(int initialCapacity,
float loadFactor)
Constructs a new, empty set; |
|
| Method Summary | |
boolean |
add(Object o)
Adds the specified element to this set if it is not already present. |
void |
clear()
Removes all of the elements from this set. |
Object |
clone()
Returns a shallow copy of this WeakSet instance: the elements themselves are not cloned. |
boolean |
contains(Object o)
Returns true if this set contains the specified element. |
boolean |
isEmpty()
Returns true if this set contains no elements. |
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. |
int |
size()
|
Object[] |
toArray(Object[] array)
|
String |
toString()
|
| Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
addAll, containsAll, retainAll, toArray |
| Constructor Detail |
public WeakSet()
public WeakSet(Collection c)
c - a collection to addpublic WeakSet(int initialCapacity)
initial - capacity
public WeakSet(int initialCapacity,
float loadFactor)
initialCapacity - loadFactor. - | Method Detail |
public boolean add(Object o)
add in class AbstractCollectiono - an Object to addpublic void clear()
clear in class AbstractCollectionpublic Object clone()
clone in class Objectpublic boolean contains(Object o)
contains in class AbstractCollectiono - an Object to examinepublic boolean isEmpty()
isEmpty in class AbstractCollectionpublic Iterator iterator()
iterator in class AbstractCollectionpublic boolean remove(Object o)
remove in class AbstractCollectiono - an Object to removepublic int size()
size in class AbstractCollectionpublic Object[] toArray(Object[] array)
toArray in class AbstractCollectionpublic String toString()
toString in class AbstractCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||