Class FloatBigLists.Singleton

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.Singleton
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, Cloneable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Float>>, Iterable<Float>, Collection<Float>
Enclosing class:
FloatBigLists

public static class FloatBigLists.Singleton extends AbstractFloatBigList implements Serializable, Cloneable
An immutable class representing a type-specific singleton big list.

This class may be useful to implement your own in case you subclass a type-specific big list.

See Also:
  • Constructor Details

    • Singleton

      protected Singleton(float element)
  • Method Details

    • getFloat

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

      public boolean rem(float k)
      Description copied from class: AbstractFloatBigList
      Removes a single instance of the specified element from this collection, if it is present (optional operation).
      Specified by:
      rem in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Overrides:
      rem in class AbstractFloatBigList
      See Also:
    • removeFloat

      public float removeFloat(long i)
      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)
    • contains

      public boolean contains(float k)
      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:
    • 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)
    • 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
    • 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 i)
      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)
    • spliterator

      public it.unimi.dsi.fastutil.floats.FloatSpliterator spliterator()
      Description copied from interface: FloatBigList
      Returns a type-specific spliterator on the elements of this big-list.

      BigList spliterators must report at least Spliterator.SIZED and Spliterator.ORDERED.

      See List.spliterator() for more documentation on the requirements of the returned spliterator (despite BigList not being a List, most of the same requirements apply.

      Specified by:
      spliterator in interface Collection<Float>
      Specified by:
      spliterator in interface FloatBigList
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.floats.FloatCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.floats.FloatIterable
      Specified by:
      spliterator in interface Iterable<Float>
      Returns:
    • 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)
    • addAll

      public boolean addAll(long i, 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
    • 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
    • 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:
    • addAll

      public boolean addAll(long i, 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(long i, 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
    • 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
    • clear

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

      public long size64()
      Specified by:
      size64 in interface it.unimi.dsi.fastutil.Size64
    • clone

      public Object clone()
      Overrides:
      clone in class Object