com.phoenixst.collections
public class CollectionWrapper extends AbstractCollection
Collection
which wraps another. This class is
intended to be extended by overriding the CollectionWrapper and
CollectionWrapper methods.
Since: 1.0
Version: $Revision: 1.9 $
Constructor Summary | |
---|---|
CollectionWrapper(Collection delegate)
Creates a new CollectionWrapper . | |
protected | CollectionWrapper()
This constructor, along with CollectionWrapper, allows a
subclass to initialize the internal state during
deserialization. |
Method Summary | |
---|---|
boolean | add(Object object) |
boolean | addAll(Collection collection) |
void | clear() |
boolean | contains(Object object) |
boolean | containsAll(Collection collection) |
protected Collection | getDelegate()
Provides accesss to the internal state so it can be manually
serialized by a subclass's writeObject() method. |
protected void | initialize(Collection collection)
This method should only be called by subclasses during
deserialization. |
boolean | isEmpty() |
Iterator | iterator() |
boolean | remove(Object object) |
boolean | removeAll(Collection collection) |
boolean | retainAll(Collection collection) |
int | size() |
Object[] | toArray() |
Object[] | toArray(Object[] array) |
String | toString() |
protected Object | unwrapObject(Object object)
Returns an unwrapped object. |
protected Object | wrapObject(Object object)
Returns a wrapped object. |
CollectionWrapper
.writeObject()
method.