org.apache.commons.collections.primitives.adapters
public class: ListLongList [javadoc |
source]
java.lang.Object
org.apache.commons.collections.primitives.adapters.AbstractCollectionLongCollection
org.apache.commons.collections.primitives.adapters.AbstractListLongList
org.apache.commons.collections.primitives.adapters.ListLongList
All Implemented Interfaces:
Serializable, LongList, LongCollection
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
| Method from org.apache.commons.collections.primitives.adapters.ListLongList Summary: |
|---|
|
getList, wrap |
| Methods from org.apache.commons.collections.primitives.adapters.AbstractListLongList: |
|---|
|
add, addAll, equals, get, getCollection, getList, hashCode, indexOf, lastIndexOf, listIterator, listIterator, removeElementAt, set, subList |
| Methods from org.apache.commons.collections.primitives.adapters.AbstractCollectionLongCollection: |
|---|
|
add, addAll, clear, contains, containsAll, getCollection, isEmpty, iterator, removeAll, removeElement, retainAll, size, toArray, toArray, toString |
| Method from org.apache.commons.collections.primitives.adapters.ListLongList Detail: |
protected List getList() {
return _list;
}
|
public static LongList wrap(List list) {
if(null == list) {
return null;
} else if(list instanceof Serializable) {
return new ListLongList(list);
} else {
return new NonSerializableListLongList(list);
}
}
Create an LongList wrapping
the specified List . When
the given list is null,
returns null. |