|
||||||||||
| 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
A synchronized wrapper class for lists.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
add(int i,
float k)
|
void |
add(int i,
Object k)
|
boolean |
addAll(FloatList l)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
FloatCollection c)
|
boolean |
addAll(int index,
FloatList l)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(List 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(Object o)
|
boolean |
equals(Object o)
|
FloatListIterator |
floatListIterator()
Returns a type-specific list iterator on the list. |
FloatListIterator |
floatListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
FloatList |
floatSubList(int from,
int to)
|
Object |
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(Object o)
|
int |
lastIndexOf(float k)
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int i)
|
Object |
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)
|
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.floats.FloatCollections.SynchronizedCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, floatIterator, isEmpty, iterator, 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 java.util.List |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
add, addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toFloatArray, toFloatArray |
| Field Detail |
public static final long serialVersionUID
| 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,
Collection c)
addAll in interface List
public boolean addAll(int index,
FloatCollection c)
addAll in interface FloatListList.add(int,Object)public boolean addAll(List l)
public boolean addAll(FloatList l)
addAll in interface FloatListList.add(int,Object)
public boolean addAll(int index,
List l)
public boolean addAll(int index,
FloatList l)
addAll in interface FloatListList.add(int,Object)
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 ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int i)
listIterator in interface Listpublic FloatListIterator floatListIterator()
FloatListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
floatListIterator in interface FloatListList.listIterator()public FloatListIterator floatListIterator(int i)
FloatListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
floatListIterator in interface FloatListList.listIterator(int)
public List subList(int from,
int to)
subList in interface List
public FloatList floatSubList(int from,
int to)
floatSubList in interface FloatListList.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 | |||||||||