public static class FloatBigLists.ListBigList extends AbstractFloatBigList implements Serializable
AbstractFloatBigList.FloatSubList
Modifier and Type | Method and Description |
---|---|
boolean |
add(float key) |
void |
add(long index,
float key) |
boolean |
addAll(Collection<? extends Float> c)
Delegates to a more generic method.
|
boolean |
addAll(FloatBigList c) |
boolean |
addAll(FloatCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long index,
Collection<? extends Float> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation).
|
boolean |
addAll(long index,
FloatBigList c)
Delegates to a more generic method.
|
boolean |
addAll(long index,
FloatCollection c)
Delegates to a more generic method.
|
void |
clear() |
boolean |
contains(float key) |
boolean |
containsAll(Collection<?> c)
Checks whether this collection contains all elements from the given collection.
|
boolean |
containsAll(FloatCollection c)
Checks whether this collection contains all elements from the given type-specific collection.
|
float |
getFloat(long index) |
int |
hashCode()
Returns the hash code for this big list, which is identical to
List.hashCode() . |
long |
indexOf(float k) |
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) |
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(Collection<?> c)
Remove from this collection all elements in the given collection.
|
boolean |
removeAll(FloatCollection c)
Remove from this collection all elements in the given type-specific collection.
|
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one.
|
float |
removeFloat(long index) |
boolean |
retainAll(Collection<?> c)
Retains in this collection only elements from the given collection.
|
boolean |
retainAll(FloatCollection c)
Retains in this collection only elements from the given type-specific collection.
|
float |
set(long index,
float k) |
int |
size()
Deprecated.
|
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)
Returns an containing the items of this collection; the runtime type of the returned array is that of the specified array.
|
float[] |
toFloatArray()
Returns a primitive type array containing the items of this collection.
|
float[] |
toFloatArray(float[] a)
Returns a primitive type array containing the items of this collection.
|
add, addAll, addElements, addElements, compareTo, equals, get, getElements, getFloat, indexOf, lastIndexOf, listIterator, peek, peekFloat, pop, popFloat, push, push, rem, remove, remove, removeFloat, set, set, size, top, topFloat, toString
add, contains, floatIterator, rem, remove, toArray, toArray
floatIterator, toArray
add, contains, parallelStream, remove, removeIf, spliterator, stream, toArray
public long size64()
Size64
@Deprecated public int size()
Size64
Integer.MAX_VALUE
.size
in interface Size64
size
in interface Collection<Float>
size
in class AbstractFloatBigList
Integer.MAX_VALUE
.Collection.size()
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<Float>
size
in class AbstractFloatBigList
size
- the new size.public FloatBigListIterator iterator()
FloatCollection
Note that this specification strengthens the one given in Iterable.iterator()
, which was already strengthened in the corresponding type-specific class, but was weakened by
the fact that this interface extends Collection
.
iterator
in interface FloatBigList
iterator
in interface FloatCollection
iterator
in interface FloatIterable
iterator
in interface Iterable<Float>
iterator
in interface Collection<Float>
iterator
in class AbstractFloatBigList
List.iterator()
public FloatBigListIterator listIterator()
FloatBigList
listIterator
in interface BigList<Float>
listIterator
in interface FloatBigList
listIterator
in class AbstractFloatBigList
List.listIterator()
public boolean addAll(long index, Collection<? extends Float> c)
BigList
addAll
in interface BigList<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 FloatBigListIterator listIterator(long index)
FloatBigList
listIterator
in interface BigList<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 FloatBigList subList(long from, long to)
FloatBigList
from
, 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 FloatBigList
subList
in class AbstractFloatBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
public boolean contains(float key)
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).public float[] toFloatArray(float[] a)
FloatCollection
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 void add(long index, float key)
add
in interface FloatBigList
add
in class AbstractFloatBigList
List.add(int,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(long index, FloatBigList c)
AbstractFloatBigList
addAll
in interface FloatBigList
addAll
in class AbstractFloatBigList
List.addAll(int,java.util.Collection)
public boolean add(float key)
add
in interface FloatCollection
add
in class AbstractFloatBigList
Collection.add(Object)
public boolean addAll(FloatBigList c)
addAll
in interface FloatBigList
addAll
in class AbstractFloatBigList
List.addAll(int,java.util.Collection)
public float getFloat(long index)
getFloat
in interface FloatBigList
BigList.get(long)
public long indexOf(float k)
indexOf
in interface FloatBigList
indexOf
in class AbstractFloatBigList
BigList.indexOf(Object)
public long lastIndexOf(float k)
lastIndexOf
in interface FloatBigList
lastIndexOf
in class AbstractFloatBigList
BigList.lastIndexOf(Object)
public float removeFloat(long index)
removeFloat
in interface FloatBigList
removeFloat
in class AbstractFloatBigList
BigList.remove(long)
public float set(long index, float k)
set
in interface FloatBigList
set
in class AbstractFloatBigList
BigList.set(long,Object)
public boolean addAll(FloatCollection c)
AbstractFloatCollection
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 containsAll(FloatCollection c)
AbstractFloatCollection
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)
AbstractFloatCollection
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)
AbstractFloatCollection
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 boolean isEmpty()
Stack
isEmpty
in interface Stack<Float>
isEmpty
in interface Collection<Float>
isEmpty
in class AbstractFloatCollection
public <T> T[] toArray(T[] a)
FloatCollection
Warning: 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.
toArray
in interface FloatCollection
toArray
in interface Collection<Float>
toArray
in class AbstractFloatCollection
a
- if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])
public boolean containsAll(Collection<?> c)
AbstractFloatCollection
containsAll
in interface Collection<Float>
containsAll
in class AbstractFloatCollection
c
- a collection.true
if this collection contains all elements of the argument.public boolean addAll(Collection<? extends Float> c)
AbstractFloatBigList
addAll
in interface Collection<Float>
addAll
in class AbstractFloatBigList
c
- a collection.true
if this collection changed as a result of the call.public boolean removeAll(Collection<?> c)
AbstractFloatCollection
removeAll
in interface Collection<Float>
removeAll
in class AbstractFloatCollection
c
- a collection.true
if this collection changed as a result of the call.public boolean retainAll(Collection<?> c)
AbstractFloatCollection
retainAll
in interface Collection<Float>
retainAll
in class AbstractFloatCollection
c
- a collection.true
if this collection changed as a result of the call.public void clear()
clear
in interface Collection<Float>
clear
in class AbstractCollection<Float>
public int hashCode()
AbstractFloatBigList
List.hashCode()
.hashCode
in interface Collection<Float>
hashCode
in class AbstractFloatBigList