Class CyclicList<E>

All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, SequencedCollection<E>

@Deprecated(forRemoval=true) public final class CyclicList<E> extends AbstractList<E>
Deprecated, for removal: This API element is subject to removal in a future version.
unused
A list with fixed size that overrides the oldest elements when new elements are added and no more space is available.
  • Field Summary

    Fields inherited from class java.util.AbstractList

    modCount
  • Constructor Summary

    Constructors
    Constructor
    Description
    CyclicList(int size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    CyclicList(E[] array)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int index, E e)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    add(E e)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    addAll(int index, Collection<? extends E> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    addAll(Collection<? extends E> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    get(int index)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    indexOf(@Nullable Object o)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    lastIndexOf(@Nullable Object o)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    remove(int index)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    remove(@Nullable Object o)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    removeAll(@Nullable Collection<?> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    retainAll(@Nullable Collection<?> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    set(int index, E e)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    <T> T[]
    toArray(T[] array)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.util.AbstractList

    equals, hashCode, iterator, listIterator, listIterator, removeRange, subList

    Methods inherited from class java.util.AbstractCollection

    contains, containsAll, toString

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.util.Collection

    parallelStream, removeIf, stream, toArray

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface java.util.List

    contains, containsAll, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
  • Constructor Details

    • CyclicList

      public CyclicList(int size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CyclicList

      public CyclicList(E[] array)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • CyclicList

      public CyclicList(Collection<E> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • add

      public boolean add(@Nullable E e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      add in interface Collection<E>
      Specified by:
      add in interface List<E>
      Overrides:
      add in class AbstractList<E>
    • addFirst

      public void addFirst(@Nullable E e)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addLast

      public void addLast(@Nullable E e)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • add

      public void add(int index, E e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      add in interface List<E>
      Overrides:
      add in class AbstractList<E>
    • addAll

      public boolean addAll(Collection<? extends E> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addAll in interface Collection<E>
      Specified by:
      addAll in interface List<E>
      Overrides:
      addAll in class AbstractCollection<E>
    • addAll

      public boolean addAll(int index, Collection<? extends E> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addAll in interface List<E>
      Overrides:
      addAll in class AbstractList<E>
    • clear

      public void clear()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      clear in interface Collection<E>
      Specified by:
      clear in interface List<E>
      Overrides:
      clear in class AbstractList<E>
    • get

      @Nullable public E get(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      get in interface List<E>
      Specified by:
      get in class AbstractList<E>
    • indexOf

      public int indexOf(@Nullable @Nullable Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      indexOf in interface List<E>
      Overrides:
      indexOf in class AbstractList<E>
    • isEmpty

      public boolean isEmpty()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      isEmpty in interface Collection<E>
      Specified by:
      isEmpty in interface List<E>
      Overrides:
      isEmpty in class AbstractCollection<E>
    • lastIndexOf

      public int lastIndexOf(@Nullable @Nullable Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      lastIndexOf in interface List<E>
      Overrides:
      lastIndexOf in class AbstractList<E>
    • remove

      public boolean remove(@Nullable @Nullable Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface Collection<E>
      Specified by:
      remove in interface List<E>
      Overrides:
      remove in class AbstractCollection<E>
    • remove

      public E remove(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface List<E>
      Overrides:
      remove in class AbstractList<E>
    • removeAll

      public boolean removeAll(@Nullable @Nullable Collection<?> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      removeAll in interface Collection<E>
      Specified by:
      removeAll in interface List<E>
      Overrides:
      removeAll in class AbstractCollection<E>
    • retainAll

      public boolean retainAll(@Nullable @Nullable Collection<?> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      retainAll in interface Collection<E>
      Specified by:
      retainAll in interface List<E>
      Overrides:
      retainAll in class AbstractCollection<E>
    • set

      @Nullable public E set(int index, @Nullable E e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      set in interface List<E>
      Overrides:
      set in class AbstractList<E>
    • size

      public int size()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      size in interface Collection<E>
      Specified by:
      size in interface List<E>
      Specified by:
      size in class AbstractCollection<E>
    • toArray

      public Object[] toArray()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>
      Overrides:
      toArray in class AbstractCollection<E>
    • toArray

      public <T> T[] toArray(@Nullable T[] array)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>
      Overrides:
      toArray in class AbstractCollection<E>