org.apache.commons.collections.primitives.adapters

Class IntCollectionCollection

public final class IntCollectionCollection extends AbstractIntCollectionCollection implements Serializable

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

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

Since: Commons Primitives 1.0

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

Author: Rodney Waldhoff

Field Summary
IntCollection_collection
Constructor Summary
IntCollectionCollection(IntCollection collection)
Creates a Collection Collection wrapping the specified IntCollection.
Method Summary
protected IntCollectiongetIntCollection()
static Collectionwrap(IntCollection collection)
Create a Collection Collection wrapping the specified IntCollection.

Field Detail

_collection

private IntCollection _collection

Constructor Detail

IntCollectionCollection

public IntCollectionCollection(IntCollection collection)
Creates a Collection Collection wrapping the specified IntCollection.

See Also: IntCollectionCollection

Method Detail

getIntCollection

protected IntCollection getIntCollection()

wrap

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

Parameters: collection the (possibly null) IntCollection to wrap

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

Copyright (c) 2002-2003 - Apache Software Foundation