Package net.minecraft.util
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
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
clear()
boolean
get
(int p_330114_) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object p_332172_) boolean
offerFirst
(T p_331206_) boolean
peekLast()
pollLast()
remove
(int p_334028_) boolean
removeFirstOccurrence
(Object p_332292_) boolean
removeLastOccurrence
(Object p_328218_) reversed()
private int
reverseIndex
(int p_335640_) int
size()
subList
(int p_331831_, int p_330462_) Methods inherited from class java.util.AbstractList
add, addAll, equals, hashCode, listIterator, listIterator, removeRange
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, 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.util.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:
offerFirst
in interfaceDeque<T>
-
offerLast
-
pollFirst
-
pollLast
-
peekFirst
-
peekLast
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<T>
- Specified by:
removeFirst
in interfaceList<T>
- Specified by:
removeFirst
in interfaceListAndDeque<T>
- Specified by:
removeFirst
in interfaceSequencedCollection<T>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<T>
- Specified by:
removeLast
in interfaceList<T>
- Specified by:
removeLast
in interfaceListAndDeque<T>
- Specified by:
removeLast
in interfaceSequencedCollection<T>
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<T>
-
size
public int size() -
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
- Specified by:
isEmpty
in interfaceList<T>
- Overrides:
isEmpty
in classAbstractCollection<T>
-
contains
-
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<T>
- Overrides:
lastIndexOf
in classAbstractList<T>
-
subList
-
iterator
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
- Specified by:
clear
in interfaceList<T>
- Overrides:
clear
in classAbstractList<T>
-
reverseIndex
private int reverseIndex(int p_335640_)
-