|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.collections.primitives.adapters.AbstractLongCollectionCollection
org.apache.commons.collections.primitives.adapters.AbstractLongListList
org.apache.commons.collections.primitives.adapters.LongListList
Adapts an LongList to the
List interface.
LongList
implementation in the "obvious" way.
| Constructor Summary | |
LongListList(LongList list)
Creates a List wrapping
the specified LongList. |
|
| Method Summary | |
void |
add(int index,
Object element)
|
boolean |
add(Object element)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection c)
|
void |
clear()
|
boolean |
contains(Object element)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(Object obj)
|
Object |
get(int index)
|
protected LongCollection |
getLongCollection()
|
protected LongList |
getLongList()
|
int |
hashCode()
|
int |
indexOf(Object element)
|
boolean |
isEmpty()
|
Iterator |
iterator()
wraps the
LongIterator
returned by my underlying
LongCollection,
if any. |
int |
lastIndexOf(Object element)
|
ListIterator |
listIterator()
wraps the
LongListIterator
returned by my underlying
LongList,
if any. |
ListIterator |
listIterator(int index)
wraps the
LongListIterator
returned by my underlying
LongList,
if any. |
Object |
remove(int index)
|
boolean |
remove(Object element)
|
boolean |
removeAll(Collection c)
|
boolean |
retainAll(Collection c)
|
Object |
set(int index,
Object element)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] A)
|
String |
toString()
|
static List |
wrap(LongList list)
Create a List wrapping
the specified LongList. |
| 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 |
| Constructor Detail |
public LongListList(LongList list)
List wrapping
the specified LongList.
wrap(org.apache.commons.collections.primitives.LongList)| Method Detail |
public static List wrap(LongList list)
List wrapping
the specified LongList. When
the given list is null,
returns null.
list - the (possibly null)
LongList to wrap
List wrapping the given
list, or null when list is
null.protected LongList getLongList()
public void add(int index,
Object element)
add in interface List
public boolean addAll(int index,
Collection c)
addAll in interface Listpublic Object get(int index)
get in interface Listpublic int indexOf(Object element)
indexOf in interface Listpublic int lastIndexOf(Object element)
lastIndexOf in interface Listpublic ListIterator listIterator()
wraps the
LongListIterator
returned by my underlying
LongList,
if any.
listIterator in interface Listpublic ListIterator listIterator(int index)
wraps the
LongListIterator
returned by my underlying
LongList,
if any.
listIterator in interface Listpublic Object remove(int index)
remove in interface List
public Object set(int index,
Object element)
set in interface List
public List subList(int fromIndex,
int toIndex)
subList in interface Listpublic boolean equals(Object obj)
equals in interface Listpublic int hashCode()
hashCode in interface Listprotected final LongCollection getLongCollection()
public boolean add(Object element)
add in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionpublic void clear()
clear in interface Collectionpublic boolean contains(Object element)
contains in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionpublic String toString()
public boolean isEmpty()
isEmpty in interface Collectionpublic Iterator iterator()
wraps the
LongIterator
returned by my underlying
LongCollection,
if any.
iterator in interface Collectionpublic boolean remove(Object element)
remove in interface Collectionpublic boolean removeAll(Collection c)
removeAll in interface Collectionpublic boolean retainAll(Collection c)
retainAll in interface Collectionpublic int size()
size in interface Collectionpublic Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] A)
toArray in interface Collection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||