org.apache.commons.collections.primitives.adapters
Class ListIntList
java.lang.Object
org.apache.commons.collections.primitives.adapters.AbstractCollectionIntCollection
org.apache.commons.collections.primitives.adapters.AbstractListIntList
org.apache.commons.collections.primitives.adapters.ListIntList
- All Implemented Interfaces:
- java.io.Serializable, IntCollection, IntList
public class ListIntList
- extends AbstractListIntList
- implements java.io.Serializable
Adapts a Number-valued List
to the IntList 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 |
ListIntList(java.util.List list)
Creates an IntList wrapping
the specified List. |
|
Method Summary |
protected java.util.List |
getList()
|
static IntList |
wrap(java.util.List list)
Create an IntList wrapping
the specified List. |
| Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractListIntList |
add, addAll, equals, get, getCollection, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList |
| Methods inherited from class org.apache.commons.collections.primitives.adapters.AbstractCollectionIntCollection |
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.IntList |
add, iterator |
| Methods inherited from interface org.apache.commons.collections.primitives.IntCollection |
addAll, clear, contains, containsAll, isEmpty, removeAll, removeElement, retainAll, size, toArray, toArray |
_list
private java.util.List _list
ListIntList
public ListIntList(java.util.List list)
- Creates an
IntList wrapping
the specified List.
- See Also:
wrap(java.util.List)
wrap
public static IntList wrap(java.util.List list)
- Create an
IntList wrapping
the specified List. When
the given list is null,
returns null.
- Parameters:
list - the (possibly null)
List to wrap
- Returns:
- a
IntList wrapping the given
list, or null when list is
null.
getList
protected java.util.List getList()
- Specified by:
getList in class AbstractListIntList
Copyright (c) 2002-2003 - Apache Software Foundation