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

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

public class ListDoubleList
extends AbstractListDoubleList
implements java.io.Serializable

Adapts a Number-valued List to the DoubleList interface.

This implementation delegates most methods to the provided List 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.List _list
           
 
Constructor Summary
ListDoubleList(java.util.List list)
          Creates an DoubleList wrapping the specified List.
 
Method Summary
protected  java.util.List getList()
           
static DoubleList wrap(java.util.List list)
          Create an DoubleList wrapping the specified List.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractListDoubleList
add, addAll, equals, get, getCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.primitives.DoubleList
add, iterator
 
Methods inherited from interface org.apache.commons.collections.primitives.DoubleCollection
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, size, toArray, toArray
 

Field Detail

_list

private java.util.List _list
Constructor Detail

ListDoubleList

public ListDoubleList(java.util.List list)
Creates an DoubleList wrapping the specified List.

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

wrap

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

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

getList

protected java.util.List getList()
Specified by:
getList in class AbstractListDoubleList


Copyright (c) 2002-2003 - Apache Software Foundation