public static class FloatBigLists.Singleton extends AbstractFloatBigList implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractFloatBigList.FloatSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends Float> c)
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection). |
boolean |
addAll(FloatBigList c)
Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
|
boolean |
addAll(FloatCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long i,
Collection<? extends Float> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long i,
FloatBigList c)
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 i,
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 |
clear()
This implementation delegates to
AbstractFloatBigList.removeElements(long, long). |
Object |
clone() |
boolean |
contains(float k)
Returns true if this list contains the specified element.
|
float |
getFloat(long i)
Returns the element at the specified position.
|
FloatBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
FloatBigListIterator |
listIterator(long i)
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).
|
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(FloatCollection c)
Remove from this collection all elements in the given type-specific collection.
|
float |
removeFloat(long i)
Removes the element at the specified position.
|
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(FloatCollection c)
Retains in this collection only elements from the given type-specific collection.
|
long |
size64()
Returns the size of this data structure as a long.
|
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. |
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekFloat, pop, popFloat, push, push, remove, removeElements, set, set, size, size, top, topFloat, toStringadd, contains, containsAll, remove, toArray, toFloatArraycontainsAll, isEmpty, toArray, toArrayadd, contains, containsAll, remove, removeIf, removeIf, toArray, toFloatArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic float getFloat(long i)
FloatBigListgetFloat in interface FloatBigListBigList.get(long)public boolean rem(float k)
AbstractFloatBigListThis implementation delegates to indexOf().
rem in interface FloatCollectionrem in class AbstractFloatBigListCollection.remove(Object)public float removeFloat(long i)
AbstractFloatBigListThis implementation always throws an UnsupportedOperationException.
removeFloat in interface FloatBigListremoveFloat in class AbstractFloatBigListBigList.remove(long)public boolean contains(float k)
AbstractFloatBigListThis implementation delegates to indexOf().
contains in interface FloatCollectioncontains in class AbstractFloatBigListCollection.contains(Object)public float[] toFloatArray()
FloatCollectiontoFloatArray in interface FloatCollectiontoFloatArray in class AbstractFloatCollectionCollection.toArray()public FloatBigListIterator listIterator()
AbstractFloatBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Float>listIterator in interface FloatBigListlistIterator in class AbstractFloatBigListBigList.listIterator()public FloatBigListIterator listIterator(long i)
AbstractFloatBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<Float>listIterator in interface FloatBigListlistIterator in class AbstractFloatBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public FloatBigList subList(long from, long to)
FloatBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Float>subList in interface FloatBigListsubList in class AbstractFloatBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
Collection<? extends Float> c)
AbstractFloatBigListaddAll in interface BigList<Float>addAll in class AbstractFloatBigListi - index at which to insert the first element from the specified collection.c - collection containing elements to be added to this big list.true if this big list changed as a result of the callList.addAll(int, Collection)public boolean addAll(Collection<? extends Float> c)
AbstractFloatBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Float>addAll in class AbstractFloatBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Float>removeAll in class AbstractCollection<Float>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Float>retainAll in class AbstractCollection<Float>public boolean addAll(FloatBigList c)
AbstractFloatBigListThis implementation delegates to the type-specific list version of AbstractFloatBigList.addAll(long, Collection).
addAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
FloatBigList c)
AbstractFloatBigListThis implementation delegates to the type-specific version of AbstractFloatBigList.addAll(long, Collection).
addAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
FloatCollection c)
AbstractFloatBigListThis implementation delegates to the type-specific version of AbstractFloatBigList.addAll(long, Collection).
addAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean addAll(FloatCollection c)
AbstractFloatBigListThis implementation delegates to the type-specific version of AbstractFloatBigList.addAll(long, Collection).
addAll in interface FloatCollectionaddAll in class AbstractFloatBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(FloatCollection c)
FloatCollectionremoveAll in interface FloatCollectionremoveAll in class AbstractFloatCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(FloatCollection c)
FloatCollectionretainAll in interface FloatCollectionretainAll in class AbstractFloatCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractFloatBigListThis implementation delegates to AbstractFloatBigList.removeElements(long, long).
clear in interface Collection<Float>clear in class AbstractFloatBigListpublic long size64()
Size64