org.apache.commons.collections.primitives.adapters

Class DoubleCollectionCollection

public final class DoubleCollectionCollection extends AbstractDoubleCollectionCollection implements Serializable

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

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

Field Detail

_collection

private DoubleCollection _collection

Constructor Detail

DoubleCollectionCollection

public DoubleCollectionCollection(DoubleCollection collection)
Creates a Collection Collection wrapping the specified DoubleCollection.

See Also: DoubleCollectionCollection

Method Detail

getDoubleCollection

protected DoubleCollection getDoubleCollection()

wrap

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

Parameters: collection the (possibly null) DoubleCollection to wrap

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

Copyright (c) 2002-2003 - Apache Software Foundation