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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractCollectionDoubleCollection
      extended by org.apache.commons.collections.primitives.adapters.CollectionDoubleCollection
All Implemented Interfaces:
java.io.Serializable, DoubleCollection

public final class CollectionDoubleCollection
extends AbstractCollectionDoubleCollection
implements java.io.Serializable

Adapts a Number-valued Collection to the DoubleCollection interface.

This implementation delegates most methods to the provided Collection 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  java.util.Collection _collection
           
 
Constructor Summary
CollectionDoubleCollection(java.util.Collection collection)
          Creates an DoubleCollection wrapping the specified Collection.
 
Method Summary
protected  java.util.Collection getCollection()
           
static DoubleCollection wrap(java.util.Collection collection)
          Create an DoubleCollection wrapping the specified Collection.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractCollectionDoubleCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_collection

private java.util.Collection _collection
Constructor Detail

CollectionDoubleCollection

public CollectionDoubleCollection(java.util.Collection collection)
Creates an DoubleCollection wrapping the specified Collection.

See Also:
wrap(java.util.Collection)
Method Detail

wrap

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

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

getCollection

protected java.util.Collection getCollection()
Specified by:
getCollection in class AbstractCollectionDoubleCollection


Copyright (c) 2002-2003 - Apache Software Foundation