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, toStringadd, contains, floatIterator, rem, remove, toArray, toArrayfloatIterator, toArrayadd, contains, parallelStream, remove, removeIf, spliterator, stream, toArraypublic long size64()
Size64@Deprecated public int size()
Size64Integer.MAX_VALUE.size in interface Size64size in interface Collection<Float>size in class AbstractFloatBigListInteger.MAX_VALUE.Collection.size()public 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()
FloatCollectionNote 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 FloatBigListiterator in interface FloatCollectioniterator in interface FloatIterableiterator in interface Iterable<Float>iterator in interface Collection<Float>iterator in class AbstractFloatBigListList.iterator()public FloatBigListIterator listIterator()
FloatBigListlistIterator in interface BigList<Float>listIterator in interface FloatBigListlistIterator in class AbstractFloatBigListList.listIterator()public boolean addAll(long index,
Collection<? extends Float> c)
BigListaddAll 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 FloatBigListIterator listIterator(long index)
FloatBigListlistIterator 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 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)
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).public float[] toFloatArray(float[] a)
FloatCollectionNote 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 void add(long index,
float key)
add in interface FloatBigListadd in class AbstractFloatBigListList.add(int,Object)public boolean addAll(long index,
FloatCollection c)
AbstractFloatBigListaddAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
FloatBigList c)
AbstractFloatBigListaddAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public boolean add(float key)
add in interface FloatCollectionadd in class AbstractFloatBigListCollection.add(Object)public boolean addAll(FloatBigList c)
addAll in interface FloatBigListaddAll in class AbstractFloatBigListList.addAll(int,java.util.Collection)public float getFloat(long index)
getFloat in interface FloatBigListBigList.get(long)public long indexOf(float k)
indexOf in interface FloatBigListindexOf in class AbstractFloatBigListBigList.indexOf(Object)public long lastIndexOf(float k)
lastIndexOf in interface FloatBigListlastIndexOf in class AbstractFloatBigListBigList.lastIndexOf(Object)public float removeFloat(long index)
removeFloat in interface FloatBigListremoveFloat in class AbstractFloatBigListBigList.remove(long)public float set(long index,
float k)
set in interface FloatBigListset in class AbstractFloatBigListBigList.set(long,Object)public boolean addAll(FloatCollection c)
AbstractFloatCollectionaddAll 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 containsAll(FloatCollection c)
AbstractFloatCollectioncontainsAll 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)
AbstractFloatCollectionremoveAll 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)
AbstractFloatCollectionretainAll 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 boolean isEmpty()
StackisEmpty in interface Stack<Float>isEmpty in interface Collection<Float>isEmpty in class AbstractFloatCollectionpublic <T> T[] toArray(T[] a)
FloatCollectionWarning: 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 FloatCollectiontoArray in interface Collection<Float>toArray in class AbstractFloatCollectiona - if this array is big enough, it will be used to store this collection.Collection.toArray(Object[])public boolean containsAll(Collection<?> c)
AbstractFloatCollectioncontainsAll in interface Collection<Float>containsAll in class AbstractFloatCollectionc - a collection.true if this collection contains all elements of the argument.public boolean addAll(Collection<? extends Float> c)
AbstractFloatBigListaddAll in interface Collection<Float>addAll in class AbstractFloatBigListc - a collection.true if this collection changed as a result of the call.public boolean removeAll(Collection<?> c)
AbstractFloatCollectionremoveAll in interface Collection<Float>removeAll in class AbstractFloatCollectionc - a collection.true if this collection changed as a result of the call.public boolean retainAll(Collection<?> c)
AbstractFloatCollectionretainAll in interface Collection<Float>retainAll in class AbstractFloatCollectionc - 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()
AbstractFloatBigListList.hashCode().hashCode in interface Collection<Float>hashCode in class AbstractFloatBigList