public class WeakReferences<E>
extends java.lang.Object
Constructor and Description |
---|
WeakReferences()
Constructs an empty pool.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o)
Appends the specified element to the pool.
|
java.util.Iterator<E> |
iterator()
Returns an iterator over live elements in this pool in proper sequence.
|
boolean |
remove(E o)
Removes a single instance of the specified element from this
list, if it is present (optional operation).
|
java.util.Iterator<E> |
reverseIterator()
Returns an iterator over live elements in this pool in reverse sequence.
|
public boolean add(E o)
o
- specified element.public boolean remove(E o)
o
- speicified element.public java.util.Iterator<E> iterator()
public java.util.Iterator<E> reverseIterator()