Package it.unimi.dsi.fastutil.floats
Class FloatBigLists.ListBigList
java.lang.Object
java.util.AbstractCollection<Float>
it.unimi.dsi.fastutil.floats.AbstractFloatCollection
it.unimi.dsi.fastutil.floats.AbstractFloatBigList
it.unimi.dsi.fastutil.floats.FloatBigLists.ListBigList
- All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Float>,FloatBigList,it.unimi.dsi.fastutil.floats.FloatCollection,it.unimi.dsi.fastutil.floats.FloatIterable,it.unimi.dsi.fastutil.floats.FloatStack,it.unimi.dsi.fastutil.Size64,it.unimi.dsi.fastutil.Stack<Float>,Serializable,Comparable<it.unimi.dsi.fastutil.BigList<? extends Float>>,Iterable<Float>,Collection<Float>
- Enclosing class:
FloatBigLists
A class exposing a list as a big list.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBigList
AbstractFloatBigList.FloatRandomAccessSubList, AbstractFloatBigList.FloatSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(float key) voidadd(long index, float key) Inserts the specified element at the specified position in this type-specific big list (optional operation).booleanaddAll(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).booleanaddAll(long index, it.unimi.dsi.fastutil.floats.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).booleanaddAll(long index, Collection<? extends Float> c) Adds all of the elements in the specified collection to this list (optional operation).booleanAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).booleanaddAll(it.unimi.dsi.fastutil.floats.FloatCollection c) booleanaddAll(Collection<? extends Float> c) voidclear()booleancontains(float key) Returns true if this list contains the specified element.booleancontainsAll(it.unimi.dsi.fastutil.floats.FloatCollection c) booleancontainsAll(Collection<?> c) floatgetFloat(long index) Returns the element at the specified position.inthashCode()Returns the hash code for this big list, which is identical toList.hashCode().longindexOf(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.booleanisEmpty()it.unimi.dsi.fastutil.floats.FloatBigListIteratoriterator()Returns a type-specific iterator on the elements of this list.longlastIndexOf(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.it.unimi.dsi.fastutil.floats.FloatBigListIteratorReturns a type-specific big-list iterator on this type-specific big list.it.unimi.dsi.fastutil.floats.FloatBigListIteratorlistIterator(long index) Returns a type-specific list iterator on this type-specific big list starting at a given index.booleanremoveAll(it.unimi.dsi.fastutil.floats.FloatCollection c) booleanremoveAll(Collection<?> c) voidremoveElements(long from, long to) Removes (hopefully quickly) elements of this type-specific big list.floatremoveFloat(long index) Removes the element at the specified position.booleanretainAll(it.unimi.dsi.fastutil.floats.FloatCollection c) booleanretainAll(Collection<?> c) floatset(long index, float k) Replaces the element at the specified position in this big list with the specified element (optional operation).voidsize(long size) longsize64()subList(long from, long to) Returns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.<T> T[]toArray(T[] a) float[]float[]toFloatArray(float[] a) Deprecated.Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBigList
add, addElements, addElements, compareTo, doubleSpliterator, ensureIndex, ensureRestrictedIndex, equals, forEach, get, getElements, indexOf, lastIndexOf, peek, peekFloat, pop, popFloat, push, push, rem, remove, set, setElements, size, top, topFloat, toStringMethods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
add, contains, remove, toArrayMethods inherited from class java.util.AbstractCollection
toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatBigList
addAll, addAll, getElements, setElements, setElements, spliteratorMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection
add, contains, doubleIterator, doubleParallelStream, doubleStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArrayMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterable
forEach, forEach
-
Constructor Details
-
ListBigList
protected ListBigList(it.unimi.dsi.fastutil.floats.FloatList list)
-
-
Method Details
-
size64
public long size64()- Specified by:
size64in interfaceit.unimi.dsi.fastutil.Size64
-
size
public void size(long size) - Specified by:
sizein interfaceit.unimi.dsi.fastutil.BigList<Float>- Overrides:
sizein classAbstractFloatBigList
-
iterator
public it.unimi.dsi.fastutil.floats.FloatBigListIterator iterator()Description copied from class:AbstractFloatBigListReturns a type-specific iterator on the elements of this list.- Specified by:
iteratorin interfaceCollection<Float>- Specified by:
iteratorin interfaceFloatBigList- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Specified by:
iteratorin interfaceit.unimi.dsi.fastutil.floats.FloatIterable- Specified by:
iteratorin interfaceIterable<Float>- Overrides:
iteratorin classAbstractFloatBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.floats.FloatBigListIterator listIterator()Description copied from class:AbstractFloatBigListReturns a type-specific big-list iterator on this type-specific big list.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Float>- Specified by:
listIteratorin interfaceFloatBigList- Overrides:
listIteratorin classAbstractFloatBigList- See Also:
-
listIterator
public it.unimi.dsi.fastutil.floats.FloatBigListIterator listIterator(long index) Description copied from class:AbstractFloatBigListReturns a type-specific list iterator on this type-specific big list starting at a given index.- Specified by:
listIteratorin interfaceit.unimi.dsi.fastutil.BigList<Float>- Specified by:
listIteratorin interfaceFloatBigList- Overrides:
listIteratorin classAbstractFloatBigList- See Also:
-
addAll
Description copied from class:AbstractFloatBigListAdds all of the elements in the specified collection to this list (optional operation).- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.BigList<Float>- Overrides:
addAllin classAbstractFloatBigList
-
subList
Description copied from interface:FloatBigListReturns a type-specific view of the portion of this type-specific big list from the indexfrom, inclusive, to the indexto, exclusive.- Specified by:
subListin interfaceit.unimi.dsi.fastutil.BigList<Float>- Specified by:
subListin interfaceFloatBigList- Overrides:
subListin classAbstractFloatBigList- See Also:
-
contains
public boolean contains(float key) Description copied from class:AbstractFloatBigListReturns true if this list contains the specified element.- Specified by:
containsin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
containsin classAbstractFloatBigList- See Also:
-
toFloatArray
public float[] toFloatArray()- Specified by:
toFloatArrayin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
toFloatArrayin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
removeElements
public void removeElements(long from, long to) Description copied from class:AbstractFloatBigListRemoves (hopefully quickly) elements of this type-specific big list.This is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
- Specified by:
removeElementsin interfaceFloatBigList- Overrides:
removeElementsin classAbstractFloatBigList- Parameters:
from- the start index (inclusive).to- the end index (exclusive).
-
toFloatArray
Deprecated.- Specified by:
toFloatArrayin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
toFloatArrayin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
addAll
public boolean addAll(long index, it.unimi.dsi.fastutil.floats.FloatCollection c) Description copied from class:AbstractFloatBigListInserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceFloatBigList- Overrides:
addAllin classAbstractFloatBigList- See Also:
-
addAll
public boolean addAll(it.unimi.dsi.fastutil.floats.FloatCollection c) Description copied from class:AbstractFloatBigList- Specified by:
addAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
addAllin classAbstractFloatBigList
-
addAll
Description copied from interface:FloatBigListInserts all of the elements in the specified type-specific big list into this type-specific big list at the specified position (optional operation).- Specified by:
addAllin interfaceFloatBigList- See Also:
-
addAll
Description copied from interface:FloatBigListAppends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).- Specified by:
addAllin interfaceFloatBigList- See Also:
-
containsAll
public boolean containsAll(it.unimi.dsi.fastutil.floats.FloatCollection c) - Specified by:
containsAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
containsAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
removeAll
public boolean removeAll(it.unimi.dsi.fastutil.floats.FloatCollection c) - Specified by:
removeAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
removeAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
retainAll
public boolean retainAll(it.unimi.dsi.fastutil.floats.FloatCollection c) - Specified by:
retainAllin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
retainAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
add
public void add(long index, float key) Description copied from class:AbstractFloatBigListInserts the specified element at the specified position in this type-specific big list (optional operation).- Specified by:
addin interfaceFloatBigList- Overrides:
addin classAbstractFloatBigList- See Also:
-
add
public boolean add(float key) Description copied from class:AbstractFloatBigList- Specified by:
addin interfaceit.unimi.dsi.fastutil.floats.FloatCollection- Overrides:
addin classAbstractFloatBigList
-
getFloat
public float getFloat(long index) Description copied from interface:FloatBigListReturns the element at the specified position.- Specified by:
getFloatin interfaceFloatBigList- See Also:
-
indexOf
public long indexOf(float k) Description copied from interface:FloatBigListReturns 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.- Specified by:
indexOfin interfaceFloatBigList- Overrides:
indexOfin classAbstractFloatBigList- See Also:
-
lastIndexOf
public long lastIndexOf(float k) Description copied from interface:FloatBigListReturns 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.- Specified by:
lastIndexOfin interfaceFloatBigList- Overrides:
lastIndexOfin classAbstractFloatBigList- See Also:
-
removeFloat
public float removeFloat(long index) Description copied from class:AbstractFloatBigListRemoves the element at the specified position.- Specified by:
removeFloatin interfaceFloatBigList- Overrides:
removeFloatin classAbstractFloatBigList- See Also:
-
set
public float set(long index, float k) Description copied from class:AbstractFloatBigListReplaces the element at the specified position in this big list with the specified element (optional operation).- Specified by:
setin interfaceFloatBigList- Overrides:
setin classAbstractFloatBigList- See Also:
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<Float>- Specified by:
isEmptyin interfaceit.unimi.dsi.fastutil.Stack<Float>- Overrides:
isEmptyin classAbstractCollection<Float>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<Float>- Overrides:
toArrayin classAbstractCollection<Float>
-
containsAll
- Specified by:
containsAllin interfaceCollection<Float>- Overrides:
containsAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
addAll
Description copied from class:AbstractFloatBigList- Specified by:
addAllin interfaceCollection<Float>- Overrides:
addAllin classAbstractFloatBigList
-
removeAll
- Specified by:
removeAllin interfaceCollection<Float>- Overrides:
removeAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
retainAll
- Specified by:
retainAllin interfaceCollection<Float>- Overrides:
retainAllin classit.unimi.dsi.fastutil.floats.AbstractFloatCollection
-
clear
public void clear()Description copied from class:AbstractFloatBigList- Specified by:
clearin interfaceCollection<Float>- Overrides:
clearin classAbstractFloatBigList
-
hashCode
public int hashCode()Description copied from class:AbstractFloatBigListReturns the hash code for this big list, which is identical toList.hashCode().- Specified by:
hashCodein interfaceCollection<Float>- Overrides:
hashCodein classAbstractFloatBigList- Returns:
- the hash code for this big list.
-