public static class DoubleLists.SynchronizedList extends DoubleCollections.SynchronizedCollection implements DoubleList, java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
add(int i,
double k) |
void |
add(int i,
java.lang.Double k) |
boolean |
addAll(DoubleList l) |
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.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(java.util.List<? extends java.lang.Double> o) |
DoubleListIterator |
doubleListIterator()
Deprecated.
|
DoubleListIterator |
doubleListIterator(int i)
Deprecated.
|
DoubleList |
doubleSubList(int from,
int to)
Deprecated.
|
boolean |
equals(java.lang.Object o) |
java.lang.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(java.lang.Object o) |
DoubleListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
int |
lastIndexOf(double k) |
int |
lastIndexOf(java.lang.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.
|
java.lang.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) |
java.lang.Double |
set(int index,
java.lang.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, toString
add
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
addAll, contains, containsAll, doubleIterator, rem, removeAll, retainAll, toArray, toArray, toDoubleArray, toDoubleArray
public double getDouble(int i)
getDouble
in interface DoubleList
List.get(int)
public double set(int i, double k)
set
in interface DoubleList
List.set(int,Object)
public void add(int i, double k)
add
in interface DoubleList
List.add(int,Object)
public double removeDouble(int i)
removeDouble
in interface DoubleList
List.remove(int)
public int indexOf(double k)
indexOf
in interface DoubleList
List.indexOf(Object)
public int lastIndexOf(double k)
lastIndexOf
in interface DoubleList
List.lastIndexOf(Object)
public boolean addAll(int index, java.util.Collection<? extends java.lang.Double> c)
addAll
in interface java.util.List<java.lang.Double>
public void getElements(int from, double[] a, int offset, int length)
DoubleList
getElements
in interface DoubleList
from
- 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)
DoubleList
removeElements
in interface DoubleList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, double[] a, int offset, int length)
DoubleList
addElements
in interface DoubleList
index
- 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)
DoubleList
addElements
in interface DoubleList
index
- the index at which to add elements.a
- the array containing the elements.public void size(int size)
DoubleList
If 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 DoubleList
size
- the new size.public DoubleListIterator iterator()
DoubleCollection
Note 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 DoubleCollection
iterator
in interface DoubleIterable
iterator
in interface DoubleList
iterator
in interface java.lang.Iterable<java.lang.Double>
iterator
in interface java.util.Collection<java.lang.Double>
iterator
in interface java.util.List<java.lang.Double>
iterator
in class DoubleCollections.SynchronizedCollection
public DoubleListIterator listIterator()
DoubleList
listIterator
in interface DoubleList
listIterator
in interface java.util.List<java.lang.Double>
List.listIterator()
public DoubleListIterator listIterator(int i)
DoubleList
listIterator
in interface DoubleList
listIterator
in interface java.util.List<java.lang.Double>
List.listIterator(int)
@Deprecated public DoubleListIterator doubleListIterator()
DoubleList
doubleListIterator
in interface DoubleList
DoubleList.listIterator()
@Deprecated public DoubleListIterator doubleListIterator(int i)
DoubleList
doubleListIterator
in interface DoubleList
DoubleList.listIterator(int)
public DoubleList subList(int from, int to)
DoubleList
from
, inclusive, to the index to
, exclusive.
Note that this specification strengthens the one given in List.subList(int,int)
.
subList
in interface DoubleList
subList
in interface java.util.List<java.lang.Double>
List.subList(int,int)
@Deprecated public DoubleList doubleSubList(int from, int to)
DoubleList
from
, inclusive, to the index to
, exclusive.doubleSubList
in interface DoubleList
List.subList(int,int)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<java.lang.Double>
equals
in interface java.util.List<java.lang.Double>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<java.lang.Double>
hashCode
in interface java.util.List<java.lang.Double>
hashCode
in class java.lang.Object
public int compareTo(java.util.List<? extends java.lang.Double> o)
compareTo
in interface java.lang.Comparable<java.util.List<? extends java.lang.Double>>
public boolean addAll(int index, DoubleCollection c)
addAll
in interface DoubleList
List.add(int,Object)
public boolean addAll(int index, DoubleList l)
addAll
in interface DoubleList
List.add(int,Object)
public boolean addAll(DoubleList l)
addAll
in interface DoubleList
List.add(int,Object)
public java.lang.Double get(int i)
get
in interface java.util.List<java.lang.Double>
public void add(int i, java.lang.Double k)
add
in interface java.util.List<java.lang.Double>
public java.lang.Double set(int index, java.lang.Double k)
set
in interface java.util.List<java.lang.Double>
public java.lang.Double remove(int i)
remove
in interface java.util.List<java.lang.Double>
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<java.lang.Double>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<java.lang.Double>