|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mongodb.util.WeakBag<T>
public class WeakBag<T>
if its not obvious what a weak bag should do, then, well... very very not thread safe
Constructor Summary | |
---|---|
WeakBag()
Initializes a new weak bag. |
Method Summary | |
---|---|
void |
add(T t)
Adds an element to the bag. |
void |
clean()
Removes any null objects from the bag. |
void |
clear()
Removes all object from the bag. |
boolean |
contains(T t)
|
List<T> |
getAll()
|
Iterator<T> |
iterator()
|
boolean |
remove(T t)
|
int |
size()
Returns the size of the bag. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeakBag()
Method Detail |
---|
public void add(T t)
t
- Element to addpublic boolean remove(T t)
public boolean contains(T t)
public int size()
public void clear()
public void clean()
public Iterator<T> iterator()
iterator
in interface Iterable<T>
public List<T> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |