public static class AbstractFloatList.FloatSubList extends AbstractFloatList implements Serializable
AbstractFloatList.FloatSubList| Constructor and Description |
|---|
FloatSubList(FloatList l,
int from,
int to) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
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. |
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, toStringadd, contains, containsAll, containsAll, floatIterator, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toFloatArray, toFloatArrayadd, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraycontainsAll, floatIterator, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArrayparallelStream, removeIf, streampublic FloatSubList(FloatList l, int from, int to)
public boolean add(float k)
add in interface FloatCollectionadd in interface FloatListadd 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 AbstractCollection<Float>public int size()
size in interface Collection<Float>size in interface List<Float>size in class AbstractCollection<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)
FloatListlistIterator in interface FloatListlistIterator in interface List<Float>listIterator in class AbstractFloatListList.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 AbstractFloatListpublic boolean addAll(int index,
FloatCollection c)
AbstractFloatListaddAll in interface FloatListaddAll in class AbstractFloatListList.add(int,Object)public boolean addAll(int index,
FloatList l)
AbstractFloatListaddAll in interface FloatListaddAll in class AbstractFloatListList.add(int,Object)