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_339634_) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object p_339602_) boolean
offerFirst
(T p_339654_) boolean
peekLast()
pollLast()
remove
(int p_339650_) boolean
removeFirstOccurrence
(Object p_339684_) boolean
removeLastOccurrence
(Object p_339678_) reversed()
private int
reverseIndex
(int p_339612_) int
size()
subList
(int p_339640_, int p_339642_) 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_339612_)
-