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

public static class FloatBigLists.ListBigList extends AbstractFloatBigList implements Serializable
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
    Modifier
    Constructor
    Description
    protected
    ListBigList(it.unimi.dsi.fastutil.floats.FloatList list)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(float key)
    void
    add(long index, float key)
    Inserts the specified element at the specified position in this type-specific big 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, 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).
    boolean
    addAll(long index, Collection<? extends Float> c)
    Adds all of the elements in the specified collection to this list (optional operation).
    boolean
    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(it.unimi.dsi.fastutil.floats.FloatCollection c)
    boolean
    addAll(Collection<? extends Float> c)
    void
    boolean
    contains(float key)
    Returns true if this list contains the specified element.
    boolean
    containsAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
     
    boolean
     
    float
    getFloat(long index)
    Returns the element at the specified position.
    int
    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
     
    it.unimi.dsi.fastutil.floats.FloatBigListIterator
    Returns a type-specific iterator on the elements of this list.
    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.
    it.unimi.dsi.fastutil.floats.FloatBigListIterator
    Returns a type-specific big-list iterator on this type-specific big list.
    it.unimi.dsi.fastutil.floats.FloatBigListIterator
    listIterator(long index)
    Returns a type-specific list iterator on this type-specific big list starting at a given index.
    boolean
    removeAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
     
    boolean
     
    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(it.unimi.dsi.fastutil.floats.FloatCollection c)
     
    boolean
     
    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)
     
    long
     
    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[]
     
    float[]
    toFloatArray(float[] a)
    Deprecated.

    Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatCollection

    add, contains, remove, toArray

    Methods inherited from class java.util.AbstractCollection

    toArray

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Collection

    toArray, toArray

    Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatBigList

    addAll, addAll, getElements, setElements, setElements, spliterator

    Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection

    add, contains, doubleIterator, doubleParallelStream, doubleStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray

    Methods 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:
      size64 in interface it.unimi.dsi.fastutil.Size64
    • size

      public void size(long size)
      Specified by:
      size in interface it.unimi.dsi.fastutil.BigList<Float>
      Overrides:
      size in class AbstractFloatBigList
    • iterator

      public it.unimi.dsi.fastutil.floats.FloatBigListIterator iterator()
      Description copied from class: AbstractFloatBigList
      Returns a type-specific iterator on the elements of this list.
      Specified by:
      iterator in interface Collection<Float>
      Specified by:
      iterator in interface FloatBigList
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
      Specified by:
      iterator in interface Iterable<Float>
      Overrides:
      iterator in class AbstractFloatBigList
      See Also:
    • listIterator

      public it.unimi.dsi.fastutil.floats.FloatBigListIterator listIterator()
      Description copied from class: AbstractFloatBigList
      Returns a type-specific big-list iterator on this type-specific big list.
      Specified by:
      listIterator in interface it.unimi.dsi.fastutil.BigList<Float>
      Specified by:
      listIterator in interface FloatBigList
      Overrides:
      listIterator in class AbstractFloatBigList
      See Also:
      • BigList.listIterator()
    • listIterator

      public it.unimi.dsi.fastutil.floats.FloatBigListIterator listIterator(long index)
      Description copied from class: AbstractFloatBigList
      Returns a type-specific list iterator on this type-specific big list starting at a given index.
      Specified by:
      listIterator in interface it.unimi.dsi.fastutil.BigList<Float>
      Specified by:
      listIterator in interface FloatBigList
      Overrides:
      listIterator in class AbstractFloatBigList
      See Also:
      • BigList.listIterator(long)
    • addAll

      public boolean addAll(long index, Collection<? extends Float> c)
      Description copied from class: AbstractFloatBigList
      Adds all of the elements in the specified collection to this list (optional operation).
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.BigList<Float>
      Overrides:
      addAll in class AbstractFloatBigList
    • subList

      public FloatBigList subList(long from, long to)
      Description copied from interface: FloatBigList
      Returns a type-specific view of the portion of this type-specific big list from the index from, inclusive, to the index to, exclusive.
      Specified by:
      subList in interface it.unimi.dsi.fastutil.BigList<Float>
      Specified by:
      subList in interface FloatBigList
      Overrides:
      subList in class AbstractFloatBigList
      See Also:
      • BigList.subList(long,long)
    • contains

      public boolean contains(float key)
      Description copied from class: AbstractFloatBigList
      Returns true if this list contains the specified element.
      Specified by:
      contains in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      contains in class AbstractFloatBigList
      See Also:
    • toFloatArray

      public float[] toFloatArray()
      Specified by:
      toFloatArray in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      toFloatArray in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • removeElements

      public void removeElements(long from, long to)
      Description copied from class: AbstractFloatBigList
      Removes (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:
      removeElements in interface FloatBigList
      Overrides:
      removeElements in class AbstractFloatBigList
      Parameters:
      from - the start index (inclusive).
      to - the end index (exclusive).
    • toFloatArray

      @Deprecated public float[] toFloatArray(float[] a)
      Deprecated.
      Specified by:
      toFloatArray in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      toFloatArray in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • addAll

      public boolean addAll(long index, it.unimi.dsi.fastutil.floats.FloatCollection c)
      Description copied from class: AbstractFloatBigList
      Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
      Specified by:
      addAll in interface FloatBigList
      Overrides:
      addAll in class AbstractFloatBigList
      See Also:
    • addAll

      public boolean addAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
      Description copied from class: AbstractFloatBigList
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      addAll in class AbstractFloatBigList
    • addAll

      public boolean addAll(long index, FloatBigList c)
      Description copied from interface: FloatBigList
      Inserts 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:
      addAll in interface FloatBigList
      See Also:
      • BigList.addAll(long,Collection)
    • addAll

      public boolean addAll(FloatBigList c)
      Description copied from interface: FloatBigList
      Appends all of the elements in the specified type-specific big list to the end of this type-specific big list (optional operation).
      Specified by:
      addAll in interface FloatBigList
      See Also:
    • containsAll

      public boolean containsAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      containsAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • removeAll

      public boolean removeAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
      Specified by:
      removeAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      removeAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • retainAll

      public boolean retainAll(it.unimi.dsi.fastutil.floats.FloatCollection c)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      retainAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • add

      public void add(long index, float key)
      Description copied from class: AbstractFloatBigList
      Inserts the specified element at the specified position in this type-specific big list (optional operation).
      Specified by:
      add in interface FloatBigList
      Overrides:
      add in class AbstractFloatBigList
      See Also:
      • BigList.add(long,Object)
    • add

      public boolean add(float key)
      Description copied from class: AbstractFloatBigList
      Specified by:
      add in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      add in class AbstractFloatBigList
    • getFloat

      public float getFloat(long index)
      Description copied from interface: FloatBigList
      Returns the element at the specified position.
      Specified by:
      getFloat in interface FloatBigList
      See Also:
      • BigList.get(long)
    • indexOf

      public long indexOf(float k)
      Description copied from interface: FloatBigList
      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.
      Specified by:
      indexOf in interface FloatBigList
      Overrides:
      indexOf in class AbstractFloatBigList
      See Also:
      • BigList.indexOf(Object)
    • lastIndexOf

      public long lastIndexOf(float k)
      Description copied from interface: FloatBigList
      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.
      Specified by:
      lastIndexOf in interface FloatBigList
      Overrides:
      lastIndexOf in class AbstractFloatBigList
      See Also:
      • BigList.lastIndexOf(Object)
    • removeFloat

      public float removeFloat(long index)
      Description copied from class: AbstractFloatBigList
      Removes the element at the specified position.
      Specified by:
      removeFloat in interface FloatBigList
      Overrides:
      removeFloat in class AbstractFloatBigList
      See Also:
      • BigList.remove(long)
    • set

      public float set(long index, float k)
      Description copied from class: AbstractFloatBigList
      Replaces the element at the specified position in this big list with the specified element (optional operation).
      Specified by:
      set in interface FloatBigList
      Overrides:
      set in class AbstractFloatBigList
      See Also:
      • BigList.set(long,Object)
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Float>
      Specified by:
      isEmpty in interface it.unimi.dsi.fastutil.Stack<Float>
      Overrides:
      isEmpty in class AbstractCollection<Float>
    • toArray

      public <T> T[] toArray(T[] a)
      Specified by:
      toArray in interface Collection<Float>
      Overrides:
      toArray in class AbstractCollection<Float>
    • containsAll

      public boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<Float>
      Overrides:
      containsAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • addAll

      public boolean addAll(Collection<? extends Float> c)
      Description copied from class: AbstractFloatBigList
      Specified by:
      addAll in interface Collection<Float>
      Overrides:
      addAll in class AbstractFloatBigList
    • removeAll

      public boolean removeAll(Collection<?> c)
      Specified by:
      removeAll in interface Collection<Float>
      Overrides:
      removeAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • retainAll

      public boolean retainAll(Collection<?> c)
      Specified by:
      retainAll in interface Collection<Float>
      Overrides:
      retainAll in class it.unimi.dsi.fastutil.floats.AbstractFloatCollection
    • clear

      public void clear()
      Description copied from class: AbstractFloatBigList
      Specified by:
      clear in interface Collection<Float>
      Overrides:
      clear in class AbstractFloatBigList
    • hashCode

      public int hashCode()
      Description copied from class: AbstractFloatBigList
      Returns the hash code for this big list, which is identical to List.hashCode().
      Specified by:
      hashCode in interface Collection<Float>
      Overrides:
      hashCode in class AbstractFloatBigList
      Returns:
      the hash code for this big list.