Class ShortBigLists.UnmodifiableBigList

java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortBigLists.UnmodifiableBigList
All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Short>, ShortBigList, it.unimi.dsi.fastutil.shorts.ShortCollection, it.unimi.dsi.fastutil.shorts.ShortIterable, it.unimi.dsi.fastutil.Size64, Serializable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Short>>, Iterable<Short>, Collection<Short>
Enclosing class:
ShortBigLists

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

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.shorts.ShortCollection
     
    protected final ShortBigList
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(long i, short k)
    Inserts the specified element at the specified position in this type-specific big list (optional operation).
    void
    add(long i, Short k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    add(short arg0)
     
    boolean
    add(Short arg0)
    Deprecated.
    boolean
    addAll(long index, ShortBigList 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.shorts.ShortCollection 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 Short> 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.shorts.ShortCollection arg0)
     
    boolean
    addAll(Collection<? extends Short> arg0)
     
    void
    addElements(long index, short[][] a)
    Add (hopefully quickly) elements to this type-specific big list.
    void
    addElements(long index, short[][] a, long offset, long length)
    Add (hopefully quickly) elements to this type-specific big list.
    void
     
    int
    compareTo(it.unimi.dsi.fastutil.BigList<? extends Short> o)
     
    boolean
    contains(short arg0)
     
    boolean
    Deprecated.
    boolean
    containsAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
     
    boolean
     
    boolean
     
    void
    forEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0)
     
    get(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    void
    getElements(long from, short[][] a, long offset, long length)
    Copies (hopefully quickly) elements of this type-specific big list into the given big array.
    short
    getShort(long i)
    Returns the element at the specified position.
    int
     
    long
    indexOf(short 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.
    it.unimi.dsi.fastutil.ints.IntIterator
     
     
    it.unimi.dsi.fastutil.ints.IntSpliterator
     
     
    boolean
     
    it.unimi.dsi.fastutil.shorts.ShortBigListIterator
    Returns a type-specific iterator on the elements of this list.
    long
    lastIndexOf(short 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.shorts.ShortBigListIterator
    Returns a type-specific big-list iterator on this type-specific big list.
    it.unimi.dsi.fastutil.shorts.ShortBigListIterator
    listIterator(long i)
    Returns a type-specific list iterator on this type-specific big list starting at a given index.
    Deprecated.
    boolean
    rem(short arg0)
     
    remove(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    remove(Object arg0)
    Deprecated.
    boolean
    removeAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
     
    boolean
     
    void
    removeElements(long from, long to)
    Removes (hopefully quickly) elements of this type-specific big list.
    boolean
    removeIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0)
     
    short
    removeShort(long i)
    Removes the element at the specified position.
    boolean
    retainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
     
    boolean
     
    short
    set(long i, short k)
    Replaces the element at the specified position in this big list with the specified element (optional operation).
    set(long index, Short k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    void
    size(long size)
    Deprecated.
    long
     
    it.unimi.dsi.fastutil.shorts.ShortSpliterator
     
    Deprecated.
    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.
     
    short[]
    toArray(short[] arg0)
     
    <T> T[]
    toArray(T[] arg0)
     
    short[]
     
    short[]
    toShortArray(short[] 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 java.util.Collection

    addAll, clear, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toArray

    Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortBigList

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

    Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection

    add, add, addAll, contains, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, rem, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toShortArray, toShortArray

    Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortIterable

    forEach, forEach, forEach
  • Field Details

    • list

      protected final ShortBigList list
    • collection

      protected final it.unimi.dsi.fastutil.shorts.ShortCollection collection
  • Constructor Details

    • UnmodifiableBigList

      protected UnmodifiableBigList(ShortBigList l)
  • Method Details

    • getShort

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

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

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

      public short removeShort(long i)
      Description copied from interface: ShortBigList
      Removes the element at the specified position.
      Specified by:
      removeShort in interface ShortBigList
      See Also:
      • BigList.remove(long)
    • indexOf

      public long indexOf(short k)
      Description copied from interface: ShortBigList
      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 ShortBigList
      See Also:
      • BigList.indexOf(Object)
    • lastIndexOf

      public long lastIndexOf(short k)
      Description copied from interface: ShortBigList
      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 ShortBigList
      See Also:
      • BigList.lastIndexOf(Object)
    • addAll

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

      public void getElements(long from, short[][] a, long offset, long length)
      Description copied from interface: ShortBigList
      Copies (hopefully quickly) elements of this type-specific big list into the given big array.
      Specified by:
      getElements in interface ShortBigList
      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: ShortBigList
      Removes (hopefully quickly) elements of this type-specific big list.
      Specified by:
      removeElements in interface ShortBigList
      Parameters:
      from - the start index (inclusive).
      to - the end index (exclusive).
    • addElements

      public void addElements(long index, short[][] a, long offset, long length)
      Description copied from interface: ShortBigList
      Add (hopefully quickly) elements to this type-specific big list.
      Specified by:
      addElements in interface ShortBigList
      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, short[][] a)
      Description copied from interface: ShortBigList
      Add (hopefully quickly) elements to this type-specific big list.
      Specified by:
      addElements in interface ShortBigList
      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<Short>
    • size64

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

      public it.unimi.dsi.fastutil.shorts.ShortBigListIterator iterator()
      Description copied from interface: ShortBigList
      Returns a type-specific iterator on the elements of this list.
      Specified by:
      iterator in interface Collection<Short>
      Specified by:
      iterator in interface Iterable<Short>
      Specified by:
      iterator in interface ShortBigList
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.shorts.ShortCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.shorts.ShortIterable
      See Also:
    • listIterator

      public it.unimi.dsi.fastutil.shorts.ShortBigListIterator listIterator()
      Description copied from interface: ShortBigList
      Returns a type-specific big-list iterator on this type-specific big list.
      Specified by:
      listIterator in interface it.unimi.dsi.fastutil.BigList<Short>
      Specified by:
      listIterator in interface ShortBigList
      See Also:
      • BigList.listIterator()
    • listIterator

      public it.unimi.dsi.fastutil.shorts.ShortBigListIterator listIterator(long i)
      Description copied from interface: ShortBigList
      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<Short>
      Specified by:
      listIterator in interface ShortBigList
      See Also:
      • BigList.listIterator(long)
    • subList

      public ShortBigList subList(long from, long to)
      Description copied from interface: ShortBigList
      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<Short>
      Specified by:
      subList in interface ShortBigList
      See Also:
      • BigList.subList(long,long)
    • equals

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

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

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

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

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

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

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

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

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

      @Deprecated public Short remove(long i)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.BigList<Short>
      Specified by:
      remove in interface ShortBigList
    • 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<Short>
      Specified by:
      indexOf in interface ShortBigList
    • 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<Short>
      Specified by:
      lastIndexOf in interface ShortBigList
    • add

      public boolean add(short arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • rem

      public boolean rem(short arg0)
      Specified by:
      rem in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • size

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

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

      public boolean contains(short arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • spliterator

      public it.unimi.dsi.fastutil.shorts.ShortSpliterator spliterator()
      Specified by:
      spliterator in interface Collection<Short>
      Specified by:
      spliterator in interface Iterable<Short>
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.shorts.ShortCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.shorts.ShortIterable
    • stream

      @Deprecated public Stream<Short> stream()
      Deprecated.
      Specified by:
      stream in interface Collection<Short>
      Specified by:
      stream in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • parallelStream

      @Deprecated public Stream<Short> parallelStream()
      Deprecated.
      Specified by:
      parallelStream in interface Collection<Short>
      Specified by:
      parallelStream in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • clear

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

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

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

      public void forEach(it.unimi.dsi.fastutil.shorts.ShortConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.shorts.ShortIterable
    • containsAll

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

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

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

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

      public boolean removeIf(it.unimi.dsi.fastutil.shorts.ShortPredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • add

      @Deprecated public boolean add(Short arg0)
      Deprecated.
      Specified by:
      add in interface Collection<Short>
      Specified by:
      add in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • contains

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

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface Collection<Short>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • toShortArray

      public short[] toShortArray()
      Specified by:
      toShortArray in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • toShortArray

      @Deprecated public short[] toShortArray(short[] arg0)
      Deprecated.
      Specified by:
      toShortArray in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • toArray

      public short[] toArray(short[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • containsAll

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

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

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

      public boolean retainAll(it.unimi.dsi.fastutil.shorts.ShortCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • intIterator

      public it.unimi.dsi.fastutil.ints.IntIterator intIterator()
      Specified by:
      intIterator in interface it.unimi.dsi.fastutil.shorts.ShortCollection
      Specified by:
      intIterator in interface it.unimi.dsi.fastutil.shorts.ShortIterable
    • intSpliterator

      public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
      Specified by:
      intSpliterator in interface it.unimi.dsi.fastutil.shorts.ShortCollection
      Specified by:
      intSpliterator in interface it.unimi.dsi.fastutil.shorts.ShortIterable
    • intStream

      public IntStream intStream()
      Specified by:
      intStream in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • intParallelStream

      public IntStream intParallelStream()
      Specified by:
      intParallelStream in interface it.unimi.dsi.fastutil.shorts.ShortCollection
    • toString

      public String toString()
      Overrides:
      toString in class Object