Class BooleanBigLists.UnmodifiableBigList

java.lang.Object
it.unimi.dsi.fastutil.booleans.BooleanBigLists.UnmodifiableBigList
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.Size64, Serializable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Boolean>>, Iterable<Boolean>, Collection<Boolean>
Enclosing class:
BooleanBigLists

public static class BooleanBigLists.UnmodifiableBigList extends Object implements BooleanBigList, Serializable
An unmodifiable wrapper class for big lists.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.booleans.BooleanCollection
     
    protected final BooleanBigList
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(boolean arg0)
     
    void
    add(long i, boolean k)
    Inserts the specified element at the specified position in this type-specific big list (optional operation).
    void
    add(long i, Boolean k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    add(Boolean arg0)
    Deprecated.
    boolean
    addAll(long index, BooleanBigList l)
    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)
     
    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 arg0)
     
    boolean
    addAll(Collection<? extends Boolean> arg0)
     
    void
    addElements(long index, boolean[][] a)
    Add (hopefully quickly) elements to this type-specific big list.
    void
    addElements(long index, boolean[][] a, long offset, long length)
    Add (hopefully quickly) elements to this type-specific big list.
    void
     
    int
    compareTo(it.unimi.dsi.fastutil.BigList<? extends Boolean> o)
     
    boolean
    contains(boolean arg0)
     
    boolean
    Deprecated.
    boolean
    containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
     
    boolean
     
    boolean
     
    void
    forEach(it.unimi.dsi.fastutil.booleans.BooleanConsumer arg0)
     
    get(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    getBoolean(long i)
    Returns the element at the specified position.
    void
    getElements(long from, boolean[][] a, long offset, long length)
    Copies (hopefully quickly) elements of this type-specific big list into the given big array.
    int
     
    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.
    long
    Deprecated.
    Please use the corresponding type-specific method instead.
    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.
    long
    Deprecated.
    Please use the corresponding type-specific method instead.
    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 i)
    Returns a type-specific list iterator on this type-specific big list starting at a given index.
     
    boolean
    rem(boolean arg0)
     
    remove(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    remove(Object arg0)
    Deprecated.
    boolean
    removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
     
    boolean
     
    boolean
    removeBoolean(long i)
    Removes the element at the specified position.
    void
    removeElements(long from, long to)
    Removes (hopefully quickly) elements of this type-specific big list.
    boolean
    removeIf(it.unimi.dsi.fastutil.booleans.BooleanPredicate arg0)
     
    boolean
    retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
     
    boolean
     
    boolean
    set(long i, boolean k)
    Replaces the element at the specified position in this big list with the specified element (optional operation).
    set(long index, Boolean k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    void
    size(long size)
    Deprecated.
    long
     
    it.unimi.dsi.fastutil.booleans.BooleanSpliterator
     
     
    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.
     
    boolean[]
    toArray(boolean[] arg0)
     
    <T> T[]
    toArray(T[] arg0)
     
    boolean[]
     
    boolean[]
    toBooleanArray(boolean[] arg0)
    Deprecated.
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface it.unimi.dsi.fastutil.BigList

    size

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

    addAll, addAll, getElements, setElements, setElements, setElements, spliterator

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

    add, add, addAll, contains, contains, containsAll, rem, remove, removeAll, removeIf, removeIf, retainAll, toArray, toBooleanArray, toBooleanArray

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

    forEach, forEach

    Methods inherited from interface java.util.Collection

    addAll, clear, containsAll, isEmpty, parallelStream, removeAll, retainAll, stream, toArray, toArray, toArray
  • Field Details

    • list

      protected final BooleanBigList list
    • collection

      protected final it.unimi.dsi.fastutil.booleans.BooleanCollection collection
  • Constructor Details

    • UnmodifiableBigList

      protected UnmodifiableBigList(BooleanBigList l)
  • Method Details

    • getBoolean

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

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

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

      public boolean removeBoolean(long i)
      Description copied from interface: BooleanBigList
      Removes the element at the specified position.
      Specified by:
      removeBoolean in interface BooleanBigList
      See Also:
      • BigList.remove(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
      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
      See Also:
      • BigList.lastIndexOf(Object)
    • addAll

      public boolean addAll(long index, Collection<? extends Boolean> c)
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.BigList<Boolean>
    • getElements

      public void getElements(long from, boolean[][] a, long offset, long length)
      Description copied from interface: BooleanBigList
      Copies (hopefully quickly) elements of this type-specific big list into the given big array.
      Specified by:
      getElements in interface BooleanBigList
      Parameters:
      from - the start index (inclusive).
      a - the destination big array.
      offset - the offset into the destination big array where to store the first element copied.
      length - the number of elements to be copied.
    • removeElements

      public void removeElements(long from, long to)
      Description copied from interface: BooleanBigList
      Removes (hopefully quickly) elements of this type-specific big list.
      Specified by:
      removeElements in interface BooleanBigList
      Parameters:
      from - the start index (inclusive).
      to - the end index (exclusive).
    • addElements

      public void addElements(long index, boolean[][] a, long offset, long length)
      Description copied from interface: BooleanBigList
      Add (hopefully quickly) elements to this type-specific big list.
      Specified by:
      addElements in interface BooleanBigList
      Parameters:
      index - the index at which to add elements.
      a - the big array containing the elements.
      offset - the offset of the first element to add.
      length - the number of elements to add.
    • addElements

      public void addElements(long index, boolean[][] a)
      Description copied from interface: BooleanBigList
      Add (hopefully quickly) elements to this type-specific big list.
      Specified by:
      addElements in interface BooleanBigList
      Parameters:
      index - the index at which to add elements.
      a - the big array containing the elements.
    • size

      @Deprecated public void size(long size)
      Deprecated.
      Specified by:
      size in interface it.unimi.dsi.fastutil.BigList<Boolean>
    • size64

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

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator iterator()
      Description copied from interface: BooleanBigList
      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>
      See Also:
    • listIterator

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator()
      Description copied from interface: BooleanBigList
      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
      See Also:
      • BigList.listIterator()
    • listIterator

      public it.unimi.dsi.fastutil.booleans.BooleanBigListIterator listIterator(long i)
      Description copied from interface: BooleanBigList
      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
      See Also:
      • BigList.listIterator(long)
    • 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
      See Also:
      • BigList.subList(long,long)
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<Boolean>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<Boolean>
    • compareTo

      public int compareTo(it.unimi.dsi.fastutil.BigList<? extends Boolean> o)
      Specified by:
      compareTo in interface Comparable<it.unimi.dsi.fastutil.BigList<? extends Boolean>>
    • addAll

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

      public boolean addAll(BooleanBigList l)
      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:
    • addAll

      public boolean addAll(long index, BooleanBigList l)
      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)
    • get

      @Deprecated public Boolean get(long i)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      get in interface BooleanBigList
    • add

      @Deprecated public void add(long i, Boolean k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      add in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      add in interface BooleanBigList
    • set

      @Deprecated public Boolean set(long index, Boolean k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      set in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      set in interface BooleanBigList
    • remove

      @Deprecated public Boolean remove(long i)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      remove in interface BooleanBigList
    • indexOf

      @Deprecated public long indexOf(Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      indexOf in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      indexOf in interface BooleanBigList
    • lastIndexOf

      @Deprecated public long lastIndexOf(Object o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      lastIndexOf in interface it.unimi.dsi.fastutil.BigList<Boolean>
      Specified by:
      lastIndexOf in interface BooleanBigList
    • add

      public boolean add(boolean arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • rem

      public boolean rem(boolean arg0)
      Specified by:
      rem in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • size

      public int size()
      Specified by:
      size in interface Collection<Boolean>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Boolean>
    • contains

      public boolean contains(boolean arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • spliterator

      public it.unimi.dsi.fastutil.booleans.BooleanSpliterator spliterator()
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
      Specified by:
      spliterator in interface Collection<Boolean>
      Specified by:
      spliterator in interface Iterable<Boolean>
    • stream

      public Stream<Boolean> stream()
      Specified by:
      stream in interface Collection<Boolean>
    • parallelStream

      public Stream<Boolean> parallelStream()
      Specified by:
      parallelStream in interface Collection<Boolean>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<Boolean>
    • toArray

      public <T> T[] toArray(T[] arg0)
      Specified by:
      toArray in interface Collection<Boolean>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<Boolean>
    • forEach

      public void forEach(it.unimi.dsi.fastutil.booleans.BooleanConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.booleans.BooleanIterable
    • containsAll

      public boolean containsAll(Collection<?> arg0)
      Specified by:
      containsAll in interface Collection<Boolean>
    • addAll

      public boolean addAll(Collection<? extends Boolean> arg0)
      Specified by:
      addAll in interface Collection<Boolean>
    • removeAll

      public boolean removeAll(Collection<?> arg0)
      Specified by:
      removeAll in interface Collection<Boolean>
    • retainAll

      public boolean retainAll(Collection<?> arg0)
      Specified by:
      retainAll in interface Collection<Boolean>
    • removeIf

      public boolean removeIf(it.unimi.dsi.fastutil.booleans.BooleanPredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • add

      @Deprecated public boolean add(Boolean arg0)
      Deprecated.
      Specified by:
      add in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      add in interface Collection<Boolean>
    • contains

      @Deprecated public boolean contains(Object arg0)
      Deprecated.
      Specified by:
      contains in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      contains in interface Collection<Boolean>
    • remove

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
      Specified by:
      remove in interface Collection<Boolean>
    • toBooleanArray

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

      @Deprecated public boolean[] toBooleanArray(boolean[] arg0)
      Deprecated.
      Specified by:
      toBooleanArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • toArray

      public boolean[] toArray(boolean[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • containsAll

      public boolean containsAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • addAll

      public boolean addAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      addAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • removeAll

      public boolean removeAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      removeAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • retainAll

      public boolean retainAll(it.unimi.dsi.fastutil.booleans.BooleanCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.booleans.BooleanCollection
    • toString

      public String toString()
      Overrides:
      toString in class Object