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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractCollectionLongCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractListLongList
          extended by org.apache.commons.collections.primitives.adapters.ListLongList
All Implemented Interfaces:
java.io.Serializable, LongCollection, LongList

public class ListLongList
extends AbstractListLongList
implements java.io.Serializable

Adapts a Number-valued List to the LongList 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:39 $
Author:
Rodney Waldhoff
See Also:
Serialized Form

Field Summary
private  java.util.List _list
           
 
Constructor Summary
ListLongList(java.util.List list)
          Creates an LongList wrapping the specified List.
 
Method Summary
protected  java.util.List getList()
           
static LongList wrap(java.util.List list)
          Create an LongList wrapping the specified List.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractListLongList
add, addAll, equals, get, getCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractCollectionLongCollection
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.LongList
add, iterator
 
Methods inherited from interface org.apache.commons.collections.primitives.LongCollection
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, size, toArray, toArray
 

Field Detail

_list

private java.util.List _list
Constructor Detail

ListLongList

public ListLongList(java.util.List list)
Creates an LongList wrapping the specified List.

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

wrap

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

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

getList

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


Copyright (c) 2002-2003 - Apache Software Foundation