@Deprecated
public class WeakBag<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Constructor and Description |
---|
WeakBag()
Deprecated.
Initializes a new weak bag.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T t)
Deprecated.
Adds an element to the bag.
|
void |
clean()
Deprecated.
Removes any null objects from the bag.
|
void |
clear()
Deprecated.
Removes all object from the bag.
|
boolean |
contains(T t)
Deprecated.
|
java.util.List<T> |
getAll()
Deprecated.
|
java.util.Iterator<T> |
iterator()
Deprecated.
|
boolean |
remove(T t)
Deprecated.
|
int |
size()
Deprecated.
Returns the size of the bag.
|
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 java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public java.util.List<T> getAll()