Class ArrayListDeque.ReversedView
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
net.minecraft.util.ArrayListDeque.ReversedView
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Deque<T>, List<T>, Queue<T>, RandomAccess, SequencedCollection<T>, ListAndDeque<T>
- Enclosing class:
ArrayListDeque<T>
-
Field Summary
FieldsFields inherited from class AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidclear()booleanget(int index) getFirst()getLast()intbooleanisEmpty()iterator()intbooleanofferFirst(T t) boolean@Nullable T@Nullable TpeekLast()@Nullable T@Nullable TpollLast()remove(int index) booleanbooleanreversed()private intreverseIndex(int index) intsize()subList(int fromIndex, int toIndex) Methods inherited from class AbstractList
add, addAll, equals, hashCode, listIterator, listIterator, removeRangeMethods inherited from class AbstractCollection
addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
add, addAll, addAll, containsAll, equals, hashCode, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
source
-
-
Constructor Details
-
ReversedView
-
-
Method Details
-
reversed
-
getFirst
-
getLast
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<T>
-
offerLast
-
pollFirst
-
pollLast
-
peekFirst
-
peekLast
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<T>- Specified by:
removeFirstin interfaceList<T>- Specified by:
removeFirstin interfaceListAndDeque<T>- Specified by:
removeFirstin interfaceSequencedCollection<T>
-
removeLast
- Specified by:
removeLastin interfaceDeque<T>- Specified by:
removeLastin interfaceList<T>- Specified by:
removeLastin interfaceListAndDeque<T>- Specified by:
removeLastin interfaceSequencedCollection<T>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<T>
-
size
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>- Specified by:
isEmptyin interfaceList<T>- Overrides:
isEmptyin classAbstractCollection<T>
-
contains
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>- Overrides:
lastIndexOfin classAbstractList<T>
-
subList
-
iterator
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>- Specified by:
clearin interfaceList<T>- Overrides:
clearin classAbstractList<T>
-
reverseIndex
private int reverseIndex(int index)
-