|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.floats.AbstractFloatCollection
it.unimi.dsi.fastutil.floats.AbstractFloatList
it.unimi.dsi.fastutil.floats.AbstractFloatList.FloatSubList
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatList |
AbstractFloatList.FloatSubList |
| Constructor Summary | |
AbstractFloatList.FloatSubList(FloatList l,
int from,
int to)
|
|
| Method Summary | |
boolean |
add(float k)
|
void |
add(int index,
float k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
FloatCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
FloatList l)
Delegates to a more generic method. |
void |
addElements(int index,
float[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
void |
clear()
|
FloatListIterator |
floatListIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
FloatList |
floatSubList(int from,
int to)
|
void |
getElements(int from,
float[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one. |
float |
getFloat(int index)
|
boolean |
rem(float k)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one. |
float |
removeFloat(int index)
|
float |
set(int index,
float k)
|
int |
size()
|
| Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatList |
add, addAll, addAll, addAll, addElements, compareTo, contains, equals, floatIterator, floatListIterator, get, hashCode, indexOf, indexOf, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekFloat, pop, popFloat, push, push, remove, set, size, subList, top, topFloat, toString |
| Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection |
add, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toFloatArray, toFloatArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
containsAll, removeAll, retainAll, toArray, toFloatArray, toFloatArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Constructor Detail |
public AbstractFloatList.FloatSubList(FloatList l,
int from,
int to)
| Method Detail |
public boolean add(float k)
add in interface FloatCollectionadd in class AbstractFloatList
public void add(int index,
float k)
add in interface FloatListadd in class AbstractFloatList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractFloatList
public boolean addAll(int index,
FloatCollection c)
AbstractFloatList
addAll in interface FloatListaddAll in class AbstractFloatList
public boolean addAll(int index,
FloatList l)
AbstractFloatList
addAll in interface FloatListaddAll in class AbstractFloatListpublic float getFloat(int index)
getFloat in interface FloatListList.get(int)public float removeFloat(int index)
removeFloat in interface FloatListremoveFloat in class AbstractFloatListpublic boolean rem(float k)
FloatCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface FloatCollectionrem in class AbstractFloatList
public float set(int index,
float k)
set in interface FloatListset in class AbstractFloatListpublic void clear()
clear in interface Listclear in class AbstractFloatCollectionpublic int size()
size in interface List
public void getElements(int from,
float[] a,
int offset,
int length)
AbstractFloatListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface FloatListgetElements in class AbstractFloatListfrom - 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)
AbstractFloatListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface FloatListremoveElements in class AbstractFloatListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
float[] a,
int offset,
int length)
AbstractFloatListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface FloatListaddElements in class AbstractFloatListindex - 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 FloatListIterator floatListIterator(int index)
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 FloatListfloatListIterator in class AbstractFloatList
public FloatList floatSubList(int from,
int to)
floatSubList in interface FloatListfloatSubList in class AbstractFloatList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||