|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.doubles.DoubleCollections.SynchronizedCollection
it.unimi.dsi.fastutil.doubles.DoubleLists.SynchronizedList
A synchronized wrapper class for lists.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
add(int i,
double k)
|
void |
add(int i,
Object k)
|
boolean |
addAll(DoubleList l)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
DoubleCollection c)
|
boolean |
addAll(int index,
DoubleList l)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(List 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(Object o)
|
DoubleListIterator |
doubleListIterator()
Returns a type-specific list iterator on the list. |
DoubleListIterator |
doubleListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
DoubleList |
doubleSubList(int from,
int to)
|
boolean |
equals(Object o)
|
Object |
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)
|
int |
lastIndexOf(double k)
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int i)
|
Object |
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)
|
Object |
set(int index,
Object k)
|
void |
size(int size)
Sets the size of this list. |
List |
subList(int from,
int to)
|
| Methods inherited from class it.unimi.dsi.fastutil.doubles.DoubleCollections.SynchronizedCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, doubleIterator, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toDoubleArray, toDoubleArray, toString |
| Methods inherited from class java.lang.Object |
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 |
| Methods inherited from interface it.unimi.dsi.fastutil.doubles.DoubleCollection |
add, addAll, contains, containsAll, doubleIterator, rem, removeAll, retainAll, toArray, toDoubleArray, toDoubleArray |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public 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 c)
addAll in interface List
public boolean addAll(int index,
DoubleCollection c)
addAll in interface DoubleListList.add(int,Object)public boolean addAll(List l)
public boolean addAll(DoubleList l)
addAll in interface DoubleListList.add(int,Object)
public boolean addAll(int index,
List l)
public boolean addAll(int index,
DoubleList l)
addAll in interface DoubleListList.add(int,Object)
public void getElements(int from,
double[] a,
int offset,
int length)
DoubleList
getElements 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)
DoubleList
removeElements in interface DoubleListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
double[] a,
int offset,
int length)
DoubleList
addElements 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)
DoubleList
addElements 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 ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int i)
listIterator in interface Listpublic DoubleListIterator doubleListIterator()
DoubleListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
doubleListIterator in interface DoubleListList.listIterator()public DoubleListIterator doubleListIterator(int i)
DoubleListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
doubleListIterator in interface DoubleListList.listIterator(int)
public List subList(int from,
int to)
subList in interface List
public DoubleList doubleSubList(int from,
int to)
doubleSubList in interface DoubleListList.subList(int,int)public boolean equals(Object o)
equals in interface Listpublic int hashCode()
hashCode in interface Listpublic int compareTo(Object o)
compareTo in interface Comparablepublic Object get(int i)
get in interface List
public void add(int i,
Object k)
add in interface List
public Object set(int index,
Object k)
set in interface Listpublic Object remove(int i)
remove in interface Listpublic int indexOf(Object o)
indexOf in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||