org.apache.commons.collections.primitives.adapters
public final class: ByteCollectionCollection [javadoc |
source]
java.lang.Object
org.apache.commons.collections.primitives.adapters.AbstractByteCollectionCollection
org.apache.commons.collections.primitives.adapters.ByteCollectionCollection
All Implemented Interfaces:
Serializable, Collection
Adapts an
ByteCollection
to the
Collection
interface.
This implementation delegates most methods
to the provided
ByteCollection
implementation in the "obvious" way.
- since:
Commons - Primitives 1.0
- version:
$ - Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
- author:
Rodney - Waldhoff
| Method from org.apache.commons.collections.primitives.adapters.ByteCollectionCollection Summary: |
|---|
|
getByteCollection, wrap |
| Methods from org.apache.commons.collections.primitives.adapters.AbstractByteCollectionCollection: |
|---|
|
add, addAll, clear, contains, containsAll, getByteCollection, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Method from org.apache.commons.collections.primitives.adapters.ByteCollectionCollection Detail: |
protected ByteCollection getByteCollection() {
return _collection;
}
|
public static Collection wrap(ByteCollection collection) {
if(null == collection) {
return null;
} else if(collection instanceof Serializable) {
return new ByteCollectionCollection(collection);
} else {
return new NonSerializableByteCollectionCollection(collection);
}
}
|