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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractDoubleCollectionCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractDoubleListList
          extended by org.apache.commons.collections.primitives.adapters.DoubleListList
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List

public final class DoubleListList
extends AbstractDoubleListList
implements java.io.Serializable

Adapts an DoubleList to the List interface.

This implementation delegates most methods to the provided DoubleList 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  DoubleList _list
           
 
Constructor Summary
DoubleListList(DoubleList list)
          Creates a List wrapping the specified DoubleList.
 
Method Summary
protected  DoubleList getDoubleList()
           
static java.util.List wrap(DoubleList list)
          Create a List wrapping the specified DoubleList.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractDoubleListList
add, addAll, equals, get, getDoubleCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractDoubleCollectionCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

_list

private DoubleList _list
Constructor Detail

DoubleListList

public DoubleListList(DoubleList list)
Creates a List wrapping the specified DoubleList.

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

wrap

public static java.util.List wrap(DoubleList list)
Create a List wrapping the specified DoubleList. When the given list is null, returns null.

Parameters:
list - the (possibly null) DoubleList to wrap
Returns:
a List wrapping the given list, or null when list is null.

getDoubleList

protected DoubleList getDoubleList()
Specified by:
getDoubleList in class AbstractDoubleListList


Copyright (c) 2002-2003 - Apache Software Foundation