Class BooleanBigLists.ListBigList

java.lang.Object
java.util.AbstractCollection<Boolean>
it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
it.unimi.dsi.fastutil.booleans.AbstractBooleanBigList
it.unimi.dsi.fastutil.booleans.BooleanBigLists.ListBigList
All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Boolean>, BooleanBigList, it.unimi.dsi.fastutil.booleans.BooleanCollection, it.unimi.dsi.fastutil.booleans.BooleanIterable, it.unimi.dsi.fastutil.booleans.BooleanStack, it.unimi.dsi.fastutil.Size64, it.unimi.dsi.fastutil.Stack<Boolean>, Serializable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Boolean>>, Iterable<Boolean>, Collection<Boolean>
Enclosing class:
BooleanBigLists

public static class BooleanBigLists.ListBigList extends AbstractBooleanBigList 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.booleans.AbstractBooleanBigList

    AbstractBooleanBigList.BooleanRandomAccessSubList, AbstractBooleanBigList.BooleanSubList
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ListBigList(it.unimi.dsi.fastutil.booleans.BooleanList list)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(boolean key)
    void
    add(long index, boolean key)
    Inserts the specified element at the specified position in this type-specific big list (optional operation).
    boolean
    addAll(long index, BooleanBigList 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.booleans.BooleanCollection 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 Boolean> 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.booleans.BooleanCollection c)
    boolean
    addAll(Collection<? extends Boolean> c)
    void
    boolean
    contains(boolean key)
    Returns true if this list contains the specified element.
    boolean
    containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
     
    boolean
     
    boolean
    getBoolean(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(boolean 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.booleans.BooleanBigListIterator
    Returns a type-specific iterator on the elements of this list.
    long
    lastIndexOf(boolean 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.booleans.BooleanBigListIterator
    Returns a type-specific big-list iterator on this type-specific big list.
    it.unimi.dsi.fastutil.booleans.BooleanBigListIterator
    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.booleans.BooleanCollection c)
     
    boolean
     
    boolean
    removeBoolean(long index)
    Removes the element at the specified position.
    void
    removeElements(long from, long to)
    Removes (hopefully quickly) elements of this type-specific big list.
    boolean
    retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
     
    boolean
     
    boolean
    set(long index, boolean 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)
     
    boolean[]
     
    boolean[]
    toBooleanArray(boolean[] a)
    Deprecated.

    Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection

    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 it.unimi.dsi.fastutil.booleans.BooleanBigList

    addAll, addAll, getElements, setElements, setElements, spliterator

    Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanCollection

    add, contains, remove, removeIf, removeIf, toArray

    Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterable

    forEach

    Methods inherited from interface java.util.Collection

    parallelStream, stream, toArray, toArray
  • Constructor Details

    • ListBigList

      protected ListBigList(it.unimi.dsi.fastutil.booleans.BooleanList 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<Boolean>
      Overrides:
      size in class AbstractBooleanBigList
    • iterator

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator iterator()
      Description copied from class: AbstractBooleanBigList
      Returns a type-specific iterator on the elements of this list.
      Specified by:
      iterator in interface BooleanBigList
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      iterator in interface Collection<Boolean>
      Specified by:
      iterator in interface Iterable<Boolean>
      Overrides:
      iterator in class AbstractBooleanBigList
      See Also:
    • listIterator

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator()
      Description copied from class: AbstractBooleanBigList
      Returns a type-specific big-list iterator on this type-specific big list.
      Specified by:
      listIterator in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      listIterator in interface BooleanBigList
      Overrides:
      listIterator in class AbstractBooleanBigList
      See Also:
      • BigList.listIterator()
    • listIterator

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator(long index)
      Description copied from class: AbstractBooleanBigList
      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<Boolean>
      Specified by:
      listIterator in interface BooleanBigList
      Overrides:
      listIterator in class AbstractBooleanBigList
      See Also:
      • BigList.listIterator(long)
    • addAll

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

      public BooleanBigList subList(long from, long to)
      Description copied from interface: BooleanBigList
      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<Boolean>
      Specified by:
      subList in interface BooleanBigList
      Overrides:
      subList in class AbstractBooleanBigList
      See Also:
      • BigList.subList(long,long)
    • contains

      public boolean contains(boolean key)
      Description copied from class: AbstractBooleanBigList
      Returns true if this list contains the specified element.
      Specified by:
      contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      contains in class AbstractBooleanBigList
      See Also:
    • toBooleanArray

      public boolean[] toBooleanArray()
      Specified by:
      toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      toBooleanArray in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
    • removeElements

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

      @Deprecated public boolean[] toBooleanArray(boolean[] a)
      Deprecated.
      Specified by:
      toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      toBooleanArray in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
    • addAll

      public boolean addAll(long index, it.unimi.dsi.fastutil.booleans.BooleanCollection c)
      Description copied from class: AbstractBooleanBigList
      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 BooleanBigList
      Overrides:
      addAll in class AbstractBooleanBigList
      See Also:
    • addAll

      public boolean addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
      Description copied from class: AbstractBooleanBigList
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      addAll in class AbstractBooleanBigList
    • addAll

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

      public boolean addAll(BooleanBigList c)
      Description copied from interface: BooleanBigList
      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 BooleanBigList
      See Also:
    • containsAll

      public boolean containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      containsAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
    • removeAll

      public boolean removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
      Specified by:
      removeAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      removeAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
    • retainAll

      public boolean retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection c)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      retainAll in class it.unimi.dsi.fastutil.booleans.AbstractBooleanCollection
    • add

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

      public boolean add(boolean key)
      Description copied from class: AbstractBooleanBigList
      Specified by:
      add in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Overrides:
      add in class AbstractBooleanBigList
    • getBoolean

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

      public long indexOf(boolean k)
      Description copied from interface: BooleanBigList
      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 BooleanBigList
      Overrides:
      indexOf in class AbstractBooleanBigList
      See Also:
      • BigList.indexOf(Object)
    • lastIndexOf

      public long lastIndexOf(boolean k)
      Description copied from interface: BooleanBigList
      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 BooleanBigList
      Overrides:
      lastIndexOf in class AbstractBooleanBigList
      See Also:
      • BigList.lastIndexOf(Object)
    • removeBoolean

      public boolean removeBoolean(long index)
      Description copied from class: AbstractBooleanBigList
      Removes the element at the specified position.
      Specified by:
      removeBoolean in interface BooleanBigList
      Overrides:
      removeBoolean in class AbstractBooleanBigList
      See Also:
      • BigList.remove(long)
    • set

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

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

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

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

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

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

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

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

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