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

java.lang.Object
  extended by org.apache.commons.collections.primitives.adapters.AbstractIntCollectionCollection
      extended by org.apache.commons.collections.primitives.adapters.AbstractIntListList
          extended by org.apache.commons.collections.primitives.adapters.IntListList
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable, java.util.Collection, java.util.List

public final class IntListList
extends AbstractIntListList
implements java.io.Serializable

Adapts an IntList to the List interface.

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

IntListList

public IntListList(IntList list)
Creates a List wrapping the specified IntList.

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

wrap

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

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

getIntList

protected IntList getIntList()
Specified by:
getIntList in class AbstractIntListList


Copyright (c) 2002-2003 - Apache Software Foundation