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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractLongCollectionCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractLongListList
          extended by org.apache.commons.collections.primitives.adapters.LongListList
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List

public final class LongListList
extends AbstractLongListList
implements java.io.Serializable

Adapts an LongList to the List interface.

This implementation delegates most methods to the provided LongList 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  LongList _list
           
 
Constructor Summary
LongListList(LongList list)
          Creates a List wrapping the specified LongList.
 
Method Summary
protected  LongList getLongList()
           
static java.util.List wrap(LongList list)
          Create a List wrapping the specified LongList.
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractLongListList
add, addAll, equals, get, getLongCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractLongCollectionCollection
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 LongList _list
Constructor Detail

LongListList

public LongListList(LongList list)
Creates a List wrapping the specified LongList.

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

wrap

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

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

getLongList

protected LongList getLongList()
Specified by:
getLongList in class AbstractLongListList


Copyright (c) 2002-2003 - Apache Software Foundation