org.apache.commons.collections.primitives.adapters

Class CharCollectionCollection

public final class CharCollectionCollection extends AbstractCharCollectionCollection implements Serializable

Adapts an CharCollection to the java.util.Collection Collection interface.

This implementation delegates most methods to the provided CharCollection 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
CharCollection_collection
Constructor Summary
CharCollectionCollection(CharCollection collection)
Creates a Collection Collection wrapping the specified CharCollection.
Method Summary
protected CharCollectiongetCharCollection()
static Collectionwrap(CharCollection collection)
Create a Collection Collection wrapping the specified CharCollection.

Field Detail

_collection

private CharCollection _collection

Constructor Detail

CharCollectionCollection

public CharCollectionCollection(CharCollection collection)
Creates a Collection Collection wrapping the specified CharCollection.

See Also: CharCollectionCollection

Method Detail

getCharCollection

protected CharCollection getCharCollection()

wrap

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

Parameters: collection the (possibly null) CharCollection to wrap

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

Copyright (c) 2002-2003 - Apache Software Foundation