org.apache.commons.collections.primitives.adapters

Class LongCollectionCollection

public final class LongCollectionCollection extends AbstractLongCollectionCollection implements Serializable

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

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

Field Detail

_collection

private LongCollection _collection

Constructor Detail

LongCollectionCollection

public LongCollectionCollection(LongCollection collection)
Creates a Collection Collection wrapping the specified LongCollection.

See Also: LongCollectionCollection

Method Detail

getLongCollection

protected LongCollection getLongCollection()

wrap

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

Parameters: collection the (possibly null) LongCollection to wrap

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

Copyright (c) 2002-2003 - Apache Software Foundation