public static class DoubleLists.UnmodifiableList extends DoubleCollections.UnmodifiableCollection implements DoubleList, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
double k) |
void |
add(int i,
Double k) |
boolean |
addAll(DoubleList l) |
boolean |
addAll(int index,
Collection<? extends Double> c) |
boolean |
addAll(int index,
DoubleCollection c) |
boolean |
addAll(int index,
DoubleList l) |
void |
addElements(int index,
double[] a)
Add (hopefully quickly) elements to this type-specific list.
|
void |
addElements(int index,
double[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list.
|
int |
compareTo(List<? extends Double> o) |
DoubleListIterator |
doubleListIterator()
Deprecated.
|
DoubleListIterator |
doubleListIterator(int i)
Deprecated.
|
DoubleList |
doubleSubList(int from,
int to)
Deprecated.
|
boolean |
equals(Object o) |
Double |
get(int i) |
double |
getDouble(int i) |
void |
getElements(int from,
double[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array.
|
int |
hashCode() |
int |
indexOf(double k) |
int |
indexOf(Object o) |
DoubleListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
lastIndexOf(double k) |
int |
lastIndexOf(Object o) |
DoubleListIterator |
listIterator()
Returns a type-specific list iterator on the list.
|
DoubleListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index.
|
Double |
remove(int i) |
double |
removeDouble(int i) |
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list.
|
double |
set(int i,
double k) |
Double |
set(int index,
Double k) |
void |
size(int size)
Sets the size of this list.
|
DoubleList |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index
from, inclusive, to the index to, exclusive. |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, doubleIterator, isEmpty, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toDoubleArray, toDoubleArray, toStringaddadd, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArrayaddAll, contains, containsAll, doubleIterator, rem, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArrayparallelStream, removeIf, streampublic double getDouble(int i)
getDouble in interface DoubleListList.get(int)public double set(int i,
double k)
set in interface DoubleListList.set(int,Object)public void add(int i,
double k)
add in interface DoubleListList.add(int,Object)public double removeDouble(int i)
removeDouble in interface DoubleListList.remove(int)public int indexOf(double k)
indexOf in interface DoubleListList.indexOf(Object)public int lastIndexOf(double k)
lastIndexOf in interface DoubleListList.lastIndexOf(Object)public boolean addAll(int index,
Collection<? extends Double> c)
public void getElements(int from,
double[] a,
int offset,
int length)
DoubleListgetElements in interface DoubleListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.public void removeElements(int from,
int to)
DoubleListremoveElements in interface DoubleListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(int index,
double[] a,
int offset,
int length)
DoubleListaddElements in interface DoubleListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public void addElements(int index,
double[] a)
DoubleListaddElements in interface DoubleListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
DoubleListIf the specified size is smaller than the current size, the last elements are discarded. Otherwise, they are filled with 0/null/false.
size in interface DoubleListsize - the new size.public DoubleListIterator iterator()
DoubleCollectionNote that this specification strengthens the one given in Iterable.iterator(), which was already strengthened in the corresponding type-specific class, but was weakened by
the fact that this interface extends Collection.
iterator in interface DoubleCollectioniterator in interface DoubleIterableiterator in interface DoubleListiterator in interface Iterable<Double>iterator in interface Collection<Double>iterator in interface List<Double>iterator in class DoubleCollections.UnmodifiableCollectionpublic DoubleListIterator listIterator()
DoubleListlistIterator in interface DoubleListlistIterator in interface List<Double>List.listIterator()public DoubleListIterator listIterator(int i)
DoubleListlistIterator in interface DoubleListlistIterator in interface List<Double>List.listIterator(int)@Deprecated public DoubleListIterator doubleListIterator()
DoubleListdoubleListIterator in interface DoubleListDoubleList.listIterator()@Deprecated public DoubleListIterator doubleListIterator(int i)
DoubleListdoubleListIterator in interface DoubleListDoubleList.listIterator(int)public DoubleList subList(int from, int to)
DoubleListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface DoubleListsubList in interface List<Double>List.subList(int,int)@Deprecated public DoubleList doubleSubList(int from, int to)
DoubleListfrom, inclusive, to the index to, exclusive.doubleSubList in interface DoubleListList.subList(int,int)public boolean equals(Object o)
public int hashCode()
public int compareTo(List<? extends Double> o)
compareTo in interface Comparable<List<? extends Double>>public boolean addAll(int index,
DoubleCollection c)
addAll in interface DoubleListList.add(int,Object)public boolean addAll(DoubleList l)
addAll in interface DoubleListList.add(int,Object)public boolean addAll(int index,
DoubleList l)
addAll in interface DoubleListList.add(int,Object)public int lastIndexOf(Object o)
lastIndexOf in interface List<Double>