Class ReversedListView<T>

java.lang.Object
ch.njol.util.coll.ReversedListView<T>
All Implemented Interfaces:
Iterable<T>, Collection<T>, List<T>, SequencedCollection<T>

@Deprecated(forRemoval=true) public class ReversedListView<T> extends Object implements List<T>
Deprecated, for removal: This API element is subject to removal in a future version.
unused
  • Constructor Summary

    Constructors
    Constructor
    Description
    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, T element)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    add(T e)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    addAll(int index, Collection<? extends T> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    addAll(Collection<? extends T> 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.
     
    boolean
    contains(@Nullable Object o)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    containsAll(@Nullable Collection<?> c)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    equals(@Nullable Object obj)
    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
    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.
     
    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.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    listIterator(int index)
    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, T element)
    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.
     
    subList(int fromIndex, int toIndex)
    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.
     
    <R> R[]
    toArray(R[] a)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, 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

    addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
  • Constructor Details

    • ReversedListView

      public ReversedListView(List<T> list)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • size

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

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

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

      public Iterator<T> iterator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      iterator in interface Collection<T>
      Specified by:
      iterator in interface Iterable<T>
      Specified by:
      iterator in interface List<T>
    • listIterator

      public ListIterator<T> listIterator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      listIterator in interface List<T>
    • listIterator

      public ListIterator<T> listIterator(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      listIterator in interface List<T>
    • toArray

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

      public <R> R[] toArray(R[] a)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      toArray in interface Collection<T>
      Specified by:
      toArray in interface List<T>
    • add

      public boolean add(T e)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      add in interface Collection<T>
      Specified by:
      add in interface List<T>
    • 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<T>
      Specified by:
      remove in interface List<T>
    • containsAll

      public boolean containsAll(@Nullable @Nullable Collection<?> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      containsAll in interface Collection<T>
      Specified by:
      containsAll in interface List<T>
    • addAll

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

      public boolean addAll(int index, Collection<? extends T> c)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      addAll in interface List<T>
    • 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<T>
      Specified by:
      removeAll in interface List<T>
    • 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<T>
      Specified by:
      retainAll in interface List<T>
    • clear

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

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

      @Nullable public T set(int index, T element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      set in interface List<T>
    • add

      public void add(int index, T element)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      add in interface List<T>
    • remove

      @Nullable public T remove(int index)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      remove in interface List<T>
    • 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<T>
    • 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<T>
    • subList

      public ReversedListView<T> subList(int fromIndex, int toIndex)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      subList in interface List<T>
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      hashCode in interface Collection<T>
      Specified by:
      hashCode in interface List<T>
      Overrides:
      hashCode in class Object
    • equals

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