net.cscott.jutil
public class CollectionWrapper<E> extends Object implements Collection<E>
CollectionWrapper
is a class that acts as a wrapper
around another Collection, using it as its backing store. This
class isn't meant for direct usage, but rather provides for an easy
way for developers to quickly add extra independent behavior to
their own specific Collections without having to reimplement all of
AbstractCollection's interface
Version: $Id: CollectionWrapper.java,v 1.2 2004/01/13 20:47:05 cananian Exp $
Field Summary | |
---|---|
protected Collection<E> | b Collection backing this . |
Constructor Summary | |
---|---|
CollectionWrapper(Collection<E> c) Creates a CollectionWrapper . |
Method Summary | |
---|---|
boolean | add(E o) |
boolean | addAll(Collection<? extends E> c) |
void | clear() |
boolean | contains(Object o) |
boolean | containsAll(Collection<?> c) |
boolean | equals(Object o) |
int | hashCode() |
boolean | isEmpty() |
Iterator<E> | iterator() |
boolean | remove(Object o) |
boolean | removeAll(Collection<?> c) |
boolean | retainAll(Collection<?> c) |
int | size() |
Object[] | toArray() |
<T> T[] | toArray(T[] a) |
String | toString() |
this
.CollectionWrapper
.