public static class FloatBigLists.Singleton extends AbstractFloatBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractFloatBigList.FloatRandomAccessSubList, AbstractFloatBigList.FloatSubList
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.Float> c) |
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,
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 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() |
java.lang.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.
|
long |
indexOf(float k)
Returns the index of the first occurrence of the specified element in this type-specific big list, or -1 if this big list does not contain the element.
|
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(java.util.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(java.util.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.
|
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. |
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, doubleSpliterator, equals, forEach, get, getElements, hashCode, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekFloat, pop, popFloat, push, push, remove, removeElements, set, set, setElements, size, size, top, topFloat, toString
add, contains, containsAll, containsAll, remove, toArray, toFloatArray
addAll, addAll, setElements, setElements
add, contains, containsAll, doubleIterator, doubleParallelStream, doubleStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray, toFloatArray
forEach, forEach
public float getFloat(long i)
FloatBigList
getFloat
in interface FloatBigList
BigList.get(long)
public boolean rem(float k)
AbstractFloatBigList
rem
in interface FloatCollection
rem
in class AbstractFloatBigList
Collection.remove(Object)
public float removeFloat(long i)
AbstractFloatBigList
removeFloat
in interface FloatBigList
removeFloat
in class AbstractFloatBigList
BigList.remove(long)
public boolean contains(float k)
AbstractFloatBigList
contains
in interface FloatCollection
contains
in class AbstractFloatBigList
Collection.contains(Object)
public long indexOf(float k)
FloatBigList
indexOf
in interface FloatBigList
indexOf
in class AbstractFloatBigList
BigList.indexOf(Object)
public float[] toFloatArray()
FloatCollection
toFloatArray
in interface FloatCollection
toFloatArray
in class AbstractFloatCollection
Collection.toArray()
public FloatBigListIterator listIterator()
AbstractFloatBigList
listIterator
in interface BigList<java.lang.Float>
listIterator
in interface FloatBigList
listIterator
in class AbstractFloatBigList
BigList.listIterator()
public FloatBigListIterator listIterator(long i)
AbstractFloatBigList
listIterator
in interface BigList<java.lang.Float>
listIterator
in interface FloatBigList
listIterator
in class AbstractFloatBigList
i
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
public FloatSpliterator spliterator()
FloatBigList
BigList 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 FloatBigList
spliterator
in interface FloatCollection
spliterator
in interface FloatIterable
spliterator
in interface java.lang.Iterable<java.lang.Float>
spliterator
in interface java.util.Collection<java.lang.Float>
public FloatBigList subList(long from, long to)
FloatBigList
from
, inclusive, to the index to
, exclusive.subList
in interface BigList<java.lang.Float>
subList
in interface FloatBigList
subList
in class AbstractFloatBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
public boolean addAll(long i, java.util.Collection<? extends java.lang.Float> c)
AbstractFloatBigList
addAll
in interface BigList<java.lang.Float>
addAll
in class AbstractFloatBigList
i
- 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(java.util.Collection<? extends java.lang.Float> c)
AbstractFloatBigList
addAll
in interface java.util.Collection<java.lang.Float>
addAll
in class AbstractFloatBigList
public boolean removeAll(java.util.Collection<?> c)
AbstractFloatCollection
removeAll
in interface java.util.Collection<java.lang.Float>
removeAll
in class AbstractFloatCollection
public boolean retainAll(java.util.Collection<?> c)
AbstractFloatCollection
retainAll
in interface java.util.Collection<java.lang.Float>
retainAll
in class AbstractFloatCollection
public boolean addAll(FloatBigList c)
FloatBigList
addAll
in interface FloatBigList
Collection.addAll(Collection)
public boolean addAll(long i, FloatBigList c)
FloatBigList
addAll
in interface FloatBigList
BigList.addAll(long,Collection)
public boolean addAll(long i, FloatCollection c)
AbstractFloatBigList
addAll
in interface FloatBigList
addAll
in class AbstractFloatBigList
List.addAll(int,java.util.Collection)
public boolean addAll(FloatCollection c)
AbstractFloatBigList
addAll
in interface FloatCollection
addAll
in class AbstractFloatBigList
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.addAll(Collection)
public boolean removeAll(FloatCollection c)
FloatCollection
removeAll
in interface FloatCollection
removeAll
in class AbstractFloatCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.removeAll(Collection)
public boolean retainAll(FloatCollection c)
FloatCollection
retainAll
in interface FloatCollection
retainAll
in class AbstractFloatCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.retainAll(Collection)
public void clear()
AbstractFloatBigList
clear
in interface java.util.Collection<java.lang.Float>
clear
in class AbstractFloatBigList
public long size64()
Size64
public java.lang.Object clone()
clone
in class java.lang.Object