org.apache.commons.collections.primitives.adapters

Class ShortCollectionCollection

public final class ShortCollectionCollection extends AbstractShortCollectionCollection implements Serializable

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

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

Field Detail

_collection

private ShortCollection _collection

Constructor Detail

ShortCollectionCollection

public ShortCollectionCollection(ShortCollection collection)
Creates a Collection Collection wrapping the specified ShortCollection.

See Also: ShortCollectionCollection

Method Detail

getShortCollection

protected ShortCollection getShortCollection()

wrap

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

Parameters: collection the (possibly null) ShortCollection to wrap

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

Copyright (c) 2002-2003 - Apache Software Foundation