org.apache.commons.collections.primitives.adapters

Class ListDoubleList

public class ListDoubleList extends AbstractListDoubleList implements Serializable

Adapts a Number-valued List List to the DoubleList interface.

This implementation delegates most methods to the provided List 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

Field Summary
List_list
Constructor Summary
ListDoubleList(List list)
Creates an DoubleList wrapping the specified List List.
Method Summary
protected ListgetList()
static DoubleListwrap(List list)
Create an DoubleList wrapping the specified List List.

Field Detail

_list

private List _list

Constructor Detail

ListDoubleList

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

See Also: ListDoubleList

Method Detail

getList

protected List getList()

wrap

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

Parameters: list the (possibly null) List List to wrap

Returns: a DoubleList wrapping the given list, or null when list is null.

Copyright (c) 2002-2003 - Apache Software Foundation