@Deprecated public class WeakBag<T> extends Object implements 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.
|
List<T> |
getAll()
Deprecated.
|
Iterator<T> |
iterator()
Deprecated.
|
boolean |
remove(T t)
Deprecated.
|
int |
size()
Deprecated.
Returns the size of the bag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
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()