Class CharBigLists.SynchronizedBigList

java.lang.Object
it.unimi.dsi.fastutil.chars.CharBigLists.SynchronizedBigList
All Implemented Interfaces:
it.unimi.dsi.fastutil.BigList<Character>, CharBigList, it.unimi.dsi.fastutil.chars.CharCollection, it.unimi.dsi.fastutil.chars.CharIterable, it.unimi.dsi.fastutil.Size64, Serializable, Comparable<it.unimi.dsi.fastutil.BigList<? extends Character>>, Iterable<Character>, Collection<Character>
Enclosing class:
CharBigLists

public static class CharBigLists.SynchronizedBigList extends Object implements CharBigList, Serializable
A synchronized wrapper class for big lists.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.chars.CharCollection
     
    protected final CharBigList
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(char arg0)
     
    void
    add(long i, char k)
    Inserts the specified element at the specified position in this type-specific big list (optional operation).
    void
    add(long i, Character k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    add(Character arg0)
    Deprecated.
    boolean
    addAll(long index, CharBigList 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.chars.CharCollection 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 Character> 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.chars.CharCollection arg0)
     
    boolean
    addAll(Collection<? extends Character> arg0)
     
    void
    addElements(long index, char[][] a)
    Add (hopefully quickly) elements to this type-specific big list.
    void
    addElements(long index, char[][] a, long offset, long length)
    Add (hopefully quickly) elements to this type-specific big list.
    void
     
    int
    compareTo(it.unimi.dsi.fastutil.BigList<? extends Character> o)
     
    boolean
    contains(char arg0)
     
    boolean
    Deprecated.
    boolean
    containsAll(it.unimi.dsi.fastutil.chars.CharCollection arg0)
     
    boolean
     
    boolean
     
    void
    forEach(it.unimi.dsi.fastutil.chars.CharConsumer arg0)
     
    get(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    char
    getChar(long i)
    Returns the element at the specified position.
    void
    getElements(long from, char[][] a, long offset, long length)
    Copies (hopefully quickly) elements of this type-specific big list into the given big array.
    int
     
    long
    indexOf(char 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.chars.CharBigListIterator
    Returns a type-specific iterator on the elements of this list.
    long
    lastIndexOf(char 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.chars.CharBigListIterator
    Returns a type-specific big-list iterator on this type-specific big list.
    it.unimi.dsi.fastutil.chars.CharBigListIterator
    listIterator(long i)
    Returns a type-specific list iterator on this type-specific big list starting at a given index.
    Deprecated.
    boolean
    rem(char arg0)
     
    remove(long i)
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean
    remove(Object arg0)
    Deprecated.
    boolean
    removeAll(it.unimi.dsi.fastutil.chars.CharCollection arg0)
     
    boolean
     
    char
    removeChar(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.chars.CharPredicate arg0)
     
    boolean
    retainAll(it.unimi.dsi.fastutil.chars.CharCollection arg0)
     
    boolean
     
    char
    set(long i, char k)
    Replaces the element at the specified position in this big list with the specified element (optional operation).
    set(long index, Character k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    void
    size(long size)
    Deprecated.
    long
     
    it.unimi.dsi.fastutil.chars.CharSpliterator
     
    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.
     
    char[]
    toArray(char[] arg0)
     
    <T> T[]
    toArray(T[] arg0)
     
    char[]
     
    char[]
    toCharArray(char[] 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.chars.CharBigList

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

    Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection

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

    Methods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable

    forEach, forEach, forEach

    Methods inherited from interface java.util.Collection

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

    • list

      protected final CharBigList list
    • collection

      protected final it.unimi.dsi.fastutil.chars.CharCollection collection
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedBigList

      protected SynchronizedBigList(CharBigList l, Object sync)
    • SynchronizedBigList

      protected SynchronizedBigList(CharBigList l)
  • Method Details

    • getChar

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

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

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

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

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

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

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

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

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

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

      public it.unimi.dsi.fastutil.chars.CharBigListIterator iterator()
      Description copied from interface: CharBigList
      Returns a type-specific iterator on the elements of this list.
      Specified by:
      iterator in interface CharBigList
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      iterator in interface it.unimi.dsi.fastutil.chars.CharIterable
      Specified by:
      iterator in interface Collection<Character>
      Specified by:
      iterator in interface Iterable<Character>
      See Also:
    • listIterator

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean add(char arg0)
      Specified by:
      add in interface it.unimi.dsi.fastutil.chars.CharCollection
    • contains

      public boolean contains(char arg0)
      Specified by:
      contains in interface it.unimi.dsi.fastutil.chars.CharCollection
    • rem

      public boolean rem(char arg0)
      Specified by:
      rem in interface it.unimi.dsi.fastutil.chars.CharCollection
    • size

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

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<Character>
    • toCharArray

      public char[] toCharArray()
      Specified by:
      toCharArray in interface it.unimi.dsi.fastutil.chars.CharCollection
    • toArray

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

      @Deprecated public char[] toCharArray(char[] arg0)
      Deprecated.
      Specified by:
      toCharArray in interface it.unimi.dsi.fastutil.chars.CharCollection
    • toArray

      public char[] toArray(char[] arg0)
      Specified by:
      toArray in interface it.unimi.dsi.fastutil.chars.CharCollection
    • addAll

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

      public boolean containsAll(it.unimi.dsi.fastutil.chars.CharCollection arg0)
      Specified by:
      containsAll in interface it.unimi.dsi.fastutil.chars.CharCollection
    • removeAll

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

      public boolean retainAll(it.unimi.dsi.fastutil.chars.CharCollection arg0)
      Specified by:
      retainAll in interface it.unimi.dsi.fastutil.chars.CharCollection
    • add

      @Deprecated public boolean add(Character arg0)
      Deprecated.
      Specified by:
      add in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      add in interface Collection<Character>
    • contains

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

      @Deprecated public boolean remove(Object arg0)
      Deprecated.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      remove in interface Collection<Character>
    • intIterator

      public it.unimi.dsi.fastutil.ints.IntIterator intIterator()
      Specified by:
      intIterator in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      intIterator in interface it.unimi.dsi.fastutil.chars.CharIterable
    • intSpliterator

      public it.unimi.dsi.fastutil.ints.IntSpliterator intSpliterator()
      Specified by:
      intSpliterator in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      intSpliterator in interface it.unimi.dsi.fastutil.chars.CharIterable
    • intStream

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

      public IntStream intParallelStream()
      Specified by:
      intParallelStream in interface it.unimi.dsi.fastutil.chars.CharCollection
    • toArray

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

      public it.unimi.dsi.fastutil.chars.CharSpliterator spliterator()
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      spliterator in interface it.unimi.dsi.fastutil.chars.CharIterable
      Specified by:
      spliterator in interface Collection<Character>
      Specified by:
      spliterator in interface Iterable<Character>
    • stream

      @Deprecated public Stream<Character> stream()
      Deprecated.
      Specified by:
      stream in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      stream in interface Collection<Character>
    • parallelStream

      @Deprecated public Stream<Character> parallelStream()
      Deprecated.
      Specified by:
      parallelStream in interface it.unimi.dsi.fastutil.chars.CharCollection
      Specified by:
      parallelStream in interface Collection<Character>
    • forEach

      public void forEach(it.unimi.dsi.fastutil.chars.CharConsumer arg0)
      Specified by:
      forEach in interface it.unimi.dsi.fastutil.chars.CharIterable
    • addAll

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

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

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

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

      public boolean removeIf(it.unimi.dsi.fastutil.chars.CharPredicate arg0)
      Specified by:
      removeIf in interface it.unimi.dsi.fastutil.chars.CharCollection
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<Character>
    • toString

      public String toString()
      Overrides:
      toString in class Object