public final class CollectionByteCollection extends AbstractCollectionByteCollection implements java.io.Serializable
Number-valued
Collection to the
ByteCollection interface.
This implementation delegates most methods
to the provided Collection
implementation in the "obvious" way.| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection |
_collection |
| Constructor and Description |
|---|
CollectionByteCollection(java.util.Collection collection)
Creates an
ByteCollection wrapping
the specified Collection. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Collection |
getCollection() |
static ByteCollection |
wrap(java.util.Collection collection)
Create an
ByteCollection wrapping
the specified Collection. |
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toStringpublic CollectionByteCollection(java.util.Collection collection)
ByteCollection wrapping
the specified Collection.wrap(java.util.Collection)public static ByteCollection wrap(java.util.Collection collection)
ByteCollection wrapping
the specified Collection. When
the given collection is null,
returns null.collection - the (possibly null) Collection to wrapByteCollection wrapping the given
collection, or null when collection is
null.protected java.util.Collection getCollection()
getCollection in class AbstractCollectionByteCollectionCopyright (c) 2002-2003 - Apache Software Foundation