public static class AbstractFloatBigList.FloatSubList extends AbstractFloatBigList implements java.io.Serializable
AbstractFloatBigList.FloatRandomAccessSubList, AbstractFloatBigList.FloatSubList| Modifier and Type | Field and Description |
|---|---|
protected long |
from
Initial (inclusive) index of this sublist.
|
protected FloatBigList |
l
The list this sublist restricts.
|
protected long |
to
Final (exclusive) index of this sublist.
|
| Constructor and Description |
|---|
FloatSubList(FloatBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float k) |
void |
add(long index,
float k)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
java.util.Collection<? extends java.lang.Float> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long index,
FloatBigList l)
Inserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long index,
it.unimi.dsi.fastutil.floats.FloatCollection c)
Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
|
void |
addElements(long index,
float[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
it.unimi.dsi.fastutil.doubles.DoubleSpliterator |
doubleSpliterator() |
void |
getElements(long from,
float[][] a,
long offset,
long length)
Copies (hopefully quickly) elements of this type-specific big list into the given big array.
|
float |
getFloat(long index)
Returns the element at the specified position.
|
it.unimi.dsi.fastutil.floats.FloatBigListIterator |
listIterator(long index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(float k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
void |
removeElements(long from,
long to)
Removes (hopefully quickly) elements of this type-specific big list.
|
float |
removeFloat(long index)
Removes the element at the specified position.
|
float |
set(long index,
float k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
long |
size64() |
it.unimi.dsi.fastutil.floats.FloatSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
FloatBigList |
subList(long from,
long to)
Returns a type-specific view of the portion of this type-specific big list from the index
from, inclusive, to the index to, exclusive. |
add, addAll, addAll, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekFloat, pop, popFloat, push, push, remove, set, setElements, size, size, top, topFloat, toStringadd, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toArray, toFloatArray, toFloatArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, getElements, setElements, setElementsadd, contains, containsAll, doubleIterator, doubleParallelStream, doubleStream, parallelStream, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toFloatArray, toFloatArrayprotected final FloatBigList l
protected final long from
protected long to
public FloatSubList(FloatBigList l, long from, long to)
public boolean add(float k)
AbstractFloatBigListadd in interface it.unimi.dsi.fastutil.floats.FloatCollectionadd in class AbstractFloatBigListpublic void add(long index,
float k)
AbstractFloatBigListadd in interface FloatBigListadd in class AbstractFloatBigListBigList.add(long,Object)public boolean addAll(long index,
java.util.Collection<? extends java.lang.Float> c)
AbstractFloatBigListaddAll in interface it.unimi.dsi.fastutil.BigList<java.lang.Float>addAll in class AbstractFloatBigListpublic float getFloat(long index)
FloatBigListgetFloat in interface FloatBigListBigList.get(long)public float removeFloat(long index)
AbstractFloatBigListremoveFloat in interface FloatBigListremoveFloat in class AbstractFloatBigListBigList.remove(long)public float set(long index,
float k)
AbstractFloatBigListset in interface FloatBigListset in class AbstractFloatBigListBigList.set(long,Object)public long size64()
size64 in interface it.unimi.dsi.fastutil.Size64public void getElements(long from,
float[][] a,
long offset,
long length)
AbstractFloatBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface FloatBigListgetElements in class AbstractFloatBigListfrom - the start index (inclusive).a - the destination big array.offset - the offset into the destination big array where to store the first element copied.length - the number of elements to be copied.public void removeElements(long from,
long to)
AbstractFloatBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface FloatBigListremoveElements in class AbstractFloatBigListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(long index,
float[][] a,
long offset,
long length)
AbstractFloatBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface FloatBigListaddElements in class AbstractFloatBigListindex - the index at which to add elements.a - the big array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public it.unimi.dsi.fastutil.floats.FloatBigListIterator listIterator(long index)
AbstractFloatBigListlistIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Float>listIterator in interface FloatBigListlistIterator in class AbstractFloatBigListBigList.listIterator(long)public it.unimi.dsi.fastutil.floats.FloatSpliterator spliterator()
FloatBigListBigList spliterators must report at least Spliterator.SIZED and Spliterator.ORDERED.
See List.spliterator() for more documentation on the requirements
of the returned spliterator (despite BigList not being a List, most of the
same requirements apply.
spliterator in interface FloatBigListspliterator in interface it.unimi.dsi.fastutil.floats.FloatCollectionspliterator in interface it.unimi.dsi.fastutil.floats.FloatIterablespliterator in interface java.lang.Iterable<java.lang.Float>spliterator in interface java.util.Collection<java.lang.Float>public it.unimi.dsi.fastutil.doubles.DoubleSpliterator doubleSpliterator()
doubleSpliterator in interface it.unimi.dsi.fastutil.floats.FloatCollectiondoubleSpliterator in interface it.unimi.dsi.fastutil.floats.FloatIterabledoubleSpliterator in class AbstractFloatBigListpublic FloatBigList subList(long from, long to)
FloatBigListfrom, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Float>subList in interface FloatBigListsubList in class AbstractFloatBigListBigList.subList(long,long)public boolean rem(float k)
AbstractFloatBigListrem in interface it.unimi.dsi.fastutil.floats.FloatCollectionrem in class AbstractFloatBigListCollection.remove(Object)public boolean addAll(long index,
it.unimi.dsi.fastutil.floats.FloatCollection c)
AbstractFloatBigListaddAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
FloatBigList l)
FloatBigListaddAll in interface FloatBigListBigList.addAll(long,Collection)