org.apache.commons.collections.primitives.adapters

Class ByteCollectionCollection

public final class ByteCollectionCollection extends AbstractByteCollectionCollection implements Serializable

Adapts an ByteCollection to the java.util.Collection 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

Field Summary
ByteCollection_collection
Constructor Summary
ByteCollectionCollection(ByteCollection collection)
Creates a Collection Collection wrapping the specified ByteCollection.
Method Summary
protected ByteCollectiongetByteCollection()
static Collectionwrap(ByteCollection collection)
Create a Collection Collection wrapping the specified ByteCollection.

Field Detail

_collection

private ByteCollection _collection

Constructor Detail

ByteCollectionCollection

public ByteCollectionCollection(ByteCollection collection)
Creates a Collection Collection wrapping the specified ByteCollection.

See Also: ByteCollectionCollection

Method Detail

getByteCollection

protected ByteCollection getByteCollection()

wrap

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

Parameters: collection the (possibly null) ByteCollection to wrap

Returns: a Collection Collection wrapping the given collection, or null when collection is null.

Copyright (c) 2002-2003 - Apache Software Foundation