|
||||||||||
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 FloatCollection
add
in class AbstractFloatList
public void add(int index, float k)
add
in interface FloatList
add
in class AbstractFloatList
public boolean addAll(int index, Collection c)
addAll
in interface List
addAll
in class AbstractFloatList
public boolean addAll(int index, FloatCollection c)
AbstractFloatList
addAll
in interface FloatList
addAll
in class AbstractFloatList
public boolean addAll(int index, FloatList l)
AbstractFloatList
addAll
in interface FloatList
addAll
in class AbstractFloatList
public float getFloat(int index)
getFloat
in interface FloatList
List.get(int)
public float removeFloat(int index)
removeFloat
in interface FloatList
removeFloat
in class AbstractFloatList
public boolean rem(float k)
FloatCollection
remove()
, 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 FloatCollection
rem
in class AbstractFloatList
public float set(int index, float k)
set
in interface FloatList
set
in class AbstractFloatList
public void clear()
clear
in interface List
clear
in class AbstractFloatCollection
public int size()
size
in interface List
public void getElements(int from, float[] a, int offset, int length)
AbstractFloatList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements
in interface FloatList
getElements
in class AbstractFloatList
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)
AbstractFloatList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements
in interface FloatList
removeElements
in class AbstractFloatList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, float[] a, int offset, int length)
AbstractFloatList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements
in interface FloatList
addElements
in class AbstractFloatList
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 FloatListIterator floatListIterator(int index)
FloatList
The 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 FloatList
floatListIterator
in class AbstractFloatList
public FloatList floatSubList(int from, int to)
floatSubList
in interface FloatList
floatSubList
in class AbstractFloatList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |