org.apache.commons.collections.primitives.adapters

Class CollectionByteCollection

public final class CollectionByteCollection extends AbstractCollectionByteCollection implements Serializable

Adapts a java.lang.Number Number-valued java.util.Collection Collection to the ByteCollection interface.

This implementation delegates most methods to the provided Collection Collection implementation in the "obvious" way.

Since: Commons Primitives 1.0

Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $

Author: Rodney Waldhoff

Field Summary
Collection_collection
Constructor Summary
CollectionByteCollection(Collection collection)
Creates an ByteCollection wrapping the specified Collection Collection.
Method Summary
protected CollectiongetCollection()
static ByteCollectionwrap(Collection collection)
Create an ByteCollection wrapping the specified Collection Collection.

Field Detail

_collection

private Collection _collection

Constructor Detail

CollectionByteCollection

public CollectionByteCollection(Collection collection)
Creates an ByteCollection wrapping the specified Collection Collection.

See Also: CollectionByteCollection

Method Detail

getCollection

protected Collection getCollection()

wrap

public static ByteCollection wrap(Collection collection)
Create an ByteCollection wrapping the specified Collection Collection. When the given collection is null, returns null.

Parameters: collection the (possibly null) Collection to wrap

Returns: an ByteCollection wrapping the given collection, or null when collection is null.

Copyright (c) 2002-2003 - Apache Software Foundation