|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.floats.FloatCollections.SynchronizedCollection
it.unimi.dsi.fastutil.floats.FloatLists.SynchronizedList
public static class FloatLists.SynchronizedList
A synchronized wrapper class for lists.
| Method Summary | |
|---|---|
void |
add(int i,
float k)
|
void |
add(int i,
java.lang.Float k)
|
boolean |
addAll(FloatList l)
|
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.Float> c)
|
boolean |
addAll(int index,
FloatCollection c)
|
boolean |
addAll(int index,
FloatList l)
|
void |
addElements(int index,
float[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
float[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
int |
compareTo(java.util.List<? extends java.lang.Float> o)
|
boolean |
equals(java.lang.Object o)
|
FloatListIterator |
floatListIterator()
Deprecated. |
FloatListIterator |
floatListIterator(int i)
Deprecated. |
FloatList |
floatSubList(int from,
int to)
Deprecated. |
java.lang.Float |
get(int i)
|
void |
getElements(int from,
float[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
float |
getFloat(int i)
|
int |
hashCode()
|
int |
indexOf(float k)
|
int |
indexOf(java.lang.Object o)
|
FloatListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection. |
int |
lastIndexOf(float k)
|
int |
lastIndexOf(java.lang.Object o)
|
FloatListIterator |
listIterator()
Returns a type-specific list iterator on the list. |
FloatListIterator |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
java.lang.Float |
remove(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
float |
removeFloat(int i)
|
float |
set(int i,
float k)
|
java.lang.Float |
set(int index,
java.lang.Float k)
|
void |
size(int size)
Sets the size of this list. |
FloatList |
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. |
| Methods inherited from class it.unimi.dsi.fastutil.floats.FloatCollections.SynchronizedCollection |
|---|
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, floatIterator, isEmpty, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toFloatArray, toFloatArray, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatList |
|---|
add |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
|---|
addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
| Method Detail |
|---|
public float getFloat(int i)
getFloat in interface FloatListList.get(int)
public float set(int i,
float k)
set in interface FloatListList.set(int,Object)
public void add(int i,
float k)
add in interface FloatListList.add(int,Object)public float removeFloat(int i)
removeFloat in interface FloatListList.remove(int)public int indexOf(float k)
indexOf in interface FloatListList.indexOf(Object)public int lastIndexOf(float k)
lastIndexOf in interface FloatListList.lastIndexOf(Object)
public boolean addAll(int index,
java.util.Collection<? extends java.lang.Float> c)
addAll in interface java.util.List<java.lang.Float>
public void getElements(int from,
float[] a,
int offset,
int length)
FloatList
getElements in interface FloatListfrom - 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)
FloatList
removeElements in interface FloatListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
float[] a,
int offset,
int length)
FloatList
addElements in interface FloatListindex - 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,
float[] a)
FloatList
addElements in interface FloatListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
FloatListIf 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 FloatListsize - the new size.public FloatListIterator iterator()
FloatCollectionNote 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 FloatCollectioniterator in interface FloatIterableiterator in interface FloatListiterator in interface java.lang.Iterable<java.lang.Float>iterator in interface java.util.Collection<java.lang.Float>iterator in interface java.util.List<java.lang.Float>iterator in class FloatCollections.SynchronizedCollectionpublic FloatListIterator listIterator()
FloatList
listIterator in interface FloatListlistIterator in interface java.util.List<java.lang.Float>List.listIterator()public FloatListIterator listIterator(int i)
FloatList
listIterator in interface FloatListlistIterator in interface java.util.List<java.lang.Float>List.listIterator(int)@Deprecated public FloatListIterator floatListIterator()
FloatList
floatListIterator in interface FloatListFloatList.listIterator()@Deprecated public FloatListIterator floatListIterator(int i)
FloatList
floatListIterator in interface FloatListFloatList.listIterator(int)
public FloatList subList(int from,
int to)
FloatListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface FloatListsubList in interface java.util.List<java.lang.Float>List.subList(int,int)
@Deprecated
public FloatList floatSubList(int from,
int to)
FloatListfrom, inclusive, to the index to, exclusive.
floatSubList in interface FloatListList.subList(int,int)public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Float>equals in interface java.util.List<java.lang.Float>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Float>hashCode in interface java.util.List<java.lang.Float>hashCode in class java.lang.Objectpublic int compareTo(java.util.List<? extends java.lang.Float> o)
compareTo in interface java.lang.Comparable<java.util.List<? extends java.lang.Float>>
public boolean addAll(int index,
FloatCollection c)
addAll in interface FloatListList.add(int,Object)
public boolean addAll(int index,
FloatList l)
addAll in interface FloatListList.add(int,Object)public boolean addAll(FloatList l)
addAll in interface FloatListList.add(int,Object)public java.lang.Float get(int i)
get in interface java.util.List<java.lang.Float>
public void add(int i,
java.lang.Float k)
add in interface java.util.List<java.lang.Float>
public java.lang.Float set(int index,
java.lang.Float k)
set in interface java.util.List<java.lang.Float>public java.lang.Float remove(int i)
remove in interface java.util.List<java.lang.Float>public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Float>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Float>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||