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