public static class FloatBigLists.ListBigList extends AbstractFloatBigList implements Serializable
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(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 index,
Collection<? extends 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()
This implementation delegates to
AbstractFloatBigList.removeElements(long, long). |
boolean |
contains(float key)
Returns true if this list contains the specified element.
|
boolean |
containsAll(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(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(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, equals, get, getElements, indexOf, lastIndexOf, peek, peekFloat, pop, popFloat, push, push, rem, remove, set, size, top, topFloat, toStringadd, contains, remove, toArraytoArrayadd, contains, remove, removeIf, removeIf, toArrayparallelStream, spliterator, stream, toArrayforEach, forEachpublic long size64()
Size64public void size(long size)
BigListIf 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 AbstractFloatBigListsize - the new size.public FloatBigListIterator iterator()
AbstractFloatBigListNote 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.
This implementation delegates to AbstractFloatBigList.listIterator().
iterator in interface FloatBigListiterator in interface FloatCollectioniterator in interface FloatIterableiterator in interface Iterable<Float>iterator in interface Collection<Float>iterator in class AbstractFloatBigListIterable.iterator()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 index)
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 AbstractFloatBigListindex - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public boolean addAll(long index,
Collection<? extends Float> c)
AbstractFloatBigListaddAll in interface BigList<Float>addAll in class AbstractFloatBigListindex - 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)
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 contains(float key)
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 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).@Deprecated public float[] toFloatArray(float[] a)
AbstractFloatCollectionNote 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 FloatCollectiontoFloatArray in class AbstractFloatCollectiona - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])public boolean addAll(long index,
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 addAll(long index,
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(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 containsAll(FloatCollection c)
FloatCollectioncontainsAll in interface FloatCollectioncontainsAll in class AbstractFloatCollectionc - a type-specific collection.true if this collection contains all elements of the argument.Collection.containsAll(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 add(long index,
float key)
AbstractFloatBigListThis implementation always throws an UnsupportedOperationException.
add in interface FloatBigListadd in class AbstractFloatBigListBigList.add(long,Object)public boolean add(float key)
AbstractFloatBigListThis implementation always throws an UnsupportedOperationException.
This implementation delegates to the type-specific version of BigList.add(long, Object).
add in interface FloatCollectionadd in class AbstractFloatBigListCollection.add(Object)public float getFloat(long index)
FloatBigListgetFloat in interface FloatBigListBigList.get(long)public long indexOf(float k)
FloatBigListindexOf in interface FloatBigListindexOf in class AbstractFloatBigListBigList.indexOf(Object)public long lastIndexOf(float k)
FloatBigListlastIndexOf in interface FloatBigListlastIndexOf in class AbstractFloatBigListBigList.lastIndexOf(Object)public float removeFloat(long index)
AbstractFloatBigListThis implementation always throws an UnsupportedOperationException.
removeFloat in interface FloatBigListremoveFloat in class AbstractFloatBigListBigList.remove(long)public float set(long index,
float k)
AbstractFloatBigListThis implementation always throws an UnsupportedOperationException.
set in interface FloatBigListset in class AbstractFloatBigListBigList.set(long,Object)public boolean isEmpty()
StackisEmpty in interface Stack<Float>isEmpty in interface Collection<Float>isEmpty in class AbstractCollection<Float>public <T> T[] toArray(T[] a)
toArray in interface Collection<Float>toArray in class AbstractCollection<Float>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Float>containsAll in class AbstractCollection<Float>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 void clear()
AbstractFloatBigListThis implementation delegates to AbstractFloatBigList.removeElements(long, long).
clear in interface Collection<Float>clear in class AbstractFloatBigListpublic int hashCode()
AbstractFloatBigListList.hashCode().hashCode in interface Collection<Float>hashCode in class AbstractFloatBigList