Package ch.njol.util.coll
Class ReversedListView<T>
java.lang.Object
ch.njol.util.coll.ReversedListView<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(@Nullable Collection<?> c) booleanget(int index) inthashCode()intbooleanisEmpty()iterator()intlastIndexOf(@Nullable Object o) listIterator(int index) remove(int index) booleanbooleanremoveAll(@Nullable Collection<?> c) booleanretainAll(@Nullable Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<R> R[]toArray(R[] a) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
ReversedListView
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
toArray
-
toArray
public <R> R[] toArray(R[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
subList
-
hashCode
public int hashCode() -
equals
-