|
|||||||||
| 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
public static class AbstractFloatList.FloatSubList
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatList |
|---|
AbstractFloatList.FloatSubList |
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| 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<? extends Float> 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()
|
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)
|
FloatListIterator |
listIterator(int index)
Returns a type-specific list iterator on the list starting at a given 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. |
boolean |
remove(Object o)
Delegates to rem(). |
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()
|
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.AbstractFloatList |
|---|
add, addAll, addAll, addAll, addElements, compareTo, contains, equals, floatListIterator, floatListIterator, floatSubList, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekFloat, pop, popFloat, push, push, remove, set, size, top, topFloat, toString |
| Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection |
|---|
add, contains, containsAll, containsAll, floatIterator, isEmpty, rem, 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, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
|---|
containsAll, floatIterator, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public AbstractFloatList.FloatSubList(FloatList l,
int from,
int to)
| Method Detail |
|---|
public boolean add(float k)
add in interface FloatCollectionadd in class AbstractFloatListCollection.add(Object)
public void add(int index,
float k)
add in interface FloatListadd in class AbstractFloatListList.add(int,Object)
public boolean addAll(int index,
Collection<? extends Float> c)
addAll in interface List<Float>addAll in class AbstractFloatListpublic float getFloat(int index)
getFloat in interface FloatListList.get(int)public float removeFloat(int index)
removeFloat in interface FloatListremoveFloat in class AbstractFloatListList.remove(int)
public float set(int index,
float k)
set in interface FloatListset in class AbstractFloatListList.set(int,Object)public void clear()
clear in interface Collection<Float>clear in interface List<Float>clear in class AbstractFloatCollectionpublic int size()
size in interface Collection<Float>size in interface List<Float>
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 listIterator(int index)
FloatList
listIterator in interface FloatListlistIterator in interface List<Float>listIterator in class AbstractFloatListFloatList.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 List<Float>subList in class AbstractFloatListList.subList(int,int)public 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 AbstractFloatListCollection.remove(Object)public boolean remove(Object o)
AbstractFloatListrem().
remove in interface Collection<Float>remove in interface List<Float>remove in class AbstractFloatList
public boolean addAll(int index,
FloatCollection c)
AbstractFloatList
addAll in interface FloatListaddAll in class AbstractFloatListList.add(int,Object)
public boolean addAll(int index,
FloatList l)
AbstractFloatList
addAll in interface FloatListaddAll in class AbstractFloatListList.add(int,Object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||