org.apache.commons.collections.primitives.adapters
Class ShortCollectionCollection

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractShortCollectionCollection
      extended by org.apache.commons.collections.primitives.adapters.ShortCollectionCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection

public final class ShortCollectionCollection
extends AbstractShortCollectionCollection
implements java.io.Serializable

Adapts an ShortCollection to the 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
See Also:
Serialized Form

Field Summary
private  ShortCollection _collection
           
 
Constructor Summary
ShortCollectionCollection(ShortCollection collection)
          Creates a Collection wrapping the specified ShortCollection.
 
Method Summary
protected  ShortCollection getShortCollection()
           
static java.util.Collection wrap(ShortCollection collection)
          Create a Collection wrapping the specified ShortCollection.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractShortCollectionCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

_collection

private ShortCollection _collection
Constructor Detail

ShortCollectionCollection

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

See Also:
wrap(org.apache.commons.collections.primitives.ShortCollection)
Method Detail

wrap

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

Parameters:
collection - the (possibly null) ShortCollection to wrap
Returns:
a Collection wrapping the given collection, or null when collection is null.

getShortCollection

protected ShortCollection getShortCollection()
Specified by:
getShortCollection in class AbstractShortCollectionCollection


Copyright (c) 2002-2003 - Apache Software Foundation