public static class FloatBigLists.ListBigList extends AbstractFloatBigList implements java.io.Serializable
AbstractFloatBigList.FloatRandomAccessSubList, AbstractFloatBigList.FloatSubList
Modifier and Type | Method and Description |
---|---|
boolean |
add(float key)
Ensures that this collection contains the specified element (optional operation).
|
void |
add(long index,
float key)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
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 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 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 index,
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() |
boolean |
contains(float key)
Returns true if this list contains the specified element.
|
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
containsAll(FloatCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
float |
getFloat(long index)
Returns the element at the specified position.
|
int |
hashCode()
Returns the hash code for this big list, which is identical to
List.hashCode() . |
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.
|
boolean |
isEmpty()
Checks whether the stack is empty.
|
FloatBigListIterator |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
long |
lastIndexOf(float k)
Returns the index of the last 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 index)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeAll(FloatCollection c)
Remove from this collection all elements in the given type-specific collection.
|
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.
|
boolean |
retainAll(java.util.Collection<?> c) |
boolean |
retainAll(FloatCollection c)
Retains in this collection only elements from the given type-specific collection.
|
float |
set(long index,
float k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
void |
size(long size)
Sets the size of this big list.
|
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. |
<T> T[] |
toArray(T[] a) |
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection.
|
float[] |
toFloatArray(float[] a)
Deprecated.
|
add, addElements, addElements, compareTo, doubleSpliterator, equals, forEach, get, getElements, indexOf, lastIndexOf, peek, peekFloat, pop, popFloat, push, push, rem, remove, set, setElements, size, top, topFloat, toString
add, contains, remove, toArray
addAll, addAll, setElements, setElements, spliterator
add, contains, doubleIterator, doubleParallelStream, doubleStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray
forEach, forEach
public long size64()
Size64
public void size(long size)
BigList
If the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null
/false
.
size
in interface BigList<java.lang.Float>
size
in class AbstractFloatBigList
size
- the new size.public FloatBigListIterator iterator()
AbstractFloatBigList
iterator
in interface FloatBigList
iterator
in interface FloatCollection
iterator
in interface FloatIterable
iterator
in interface java.lang.Iterable<java.lang.Float>
iterator
in interface java.util.Collection<java.lang.Float>
iterator
in class AbstractFloatBigList
Iterable.iterator()
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 index)
AbstractFloatBigList
listIterator
in interface BigList<java.lang.Float>
listIterator
in interface FloatBigList
listIterator
in class AbstractFloatBigList
index
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
public boolean addAll(long index, java.util.Collection<? extends java.lang.Float> c)
AbstractFloatBigList
addAll
in interface BigList<java.lang.Float>
addAll
in class AbstractFloatBigList
index
- 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 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 contains(float key)
AbstractFloatBigList
contains
in interface FloatCollection
contains
in class AbstractFloatBigList
Collection.contains(Object)
public float[] toFloatArray()
FloatCollection
toFloatArray
in interface FloatCollection
toFloatArray
in class AbstractFloatCollection
Collection.toArray()
public void removeElements(long from, long to)
AbstractFloatBigList
This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements
in interface FloatBigList
removeElements
in class AbstractFloatBigList
from
- the start index (inclusive).to
- the end index (exclusive).@Deprecated public float[] toFloatArray(float[] a)
AbstractFloatCollection
Note that, contrarily to Collection.toArray(Object[])
, this
methods just writes all elements of this collection: no special
value will be added after the last one.
toFloatArray
in interface FloatCollection
toFloatArray
in class AbstractFloatCollection
a
- if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])
public boolean addAll(long index, 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 addAll(long index, FloatBigList c)
FloatBigList
addAll
in interface FloatBigList
BigList.addAll(long,Collection)
public boolean addAll(FloatBigList c)
FloatBigList
addAll
in interface FloatBigList
Collection.addAll(Collection)
public boolean containsAll(FloatCollection c)
FloatCollection
containsAll
in interface FloatCollection
containsAll
in class AbstractFloatCollection
c
- a type-specific collection.true
if this collection contains all elements of the argument.Collection.containsAll(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 add(long index, float key)
AbstractFloatBigList
add
in interface FloatBigList
add
in class AbstractFloatBigList
BigList.add(long,Object)
public boolean add(float key)
AbstractFloatBigList
add
in interface FloatCollection
add
in class AbstractFloatBigList
Collection.add(Object)
public float getFloat(long index)
FloatBigList
getFloat
in interface FloatBigList
BigList.get(long)
public long indexOf(float k)
FloatBigList
indexOf
in interface FloatBigList
indexOf
in class AbstractFloatBigList
BigList.indexOf(Object)
public long lastIndexOf(float k)
FloatBigList
lastIndexOf
in interface FloatBigList
lastIndexOf
in class AbstractFloatBigList
BigList.lastIndexOf(Object)
public float removeFloat(long index)
AbstractFloatBigList
removeFloat
in interface FloatBigList
removeFloat
in class AbstractFloatBigList
BigList.remove(long)
public float set(long index, float k)
AbstractFloatBigList
set
in interface FloatBigList
set
in class AbstractFloatBigList
BigList.set(long,Object)
public boolean isEmpty()
Stack
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<java.lang.Float>
toArray
in class java.util.AbstractCollection<java.lang.Float>
public boolean containsAll(java.util.Collection<?> c)
AbstractFloatCollection
containsAll
in interface java.util.Collection<java.lang.Float>
containsAll
in class AbstractFloatCollection
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 void clear()
AbstractFloatBigList
clear
in interface java.util.Collection<java.lang.Float>
clear
in class AbstractFloatBigList
public int hashCode()
AbstractFloatBigList
List.hashCode()
.hashCode
in interface java.util.Collection<java.lang.Float>
hashCode
in class AbstractFloatBigList