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
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
clear()
boolean
get
(int pIndex) getFirst()
getLast()
int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object pElement) boolean
offerFirst
(T pElement) boolean
peekLast()
pollLast()
remove
(int pIndex) boolean
removeFirstOccurrence
(Object pElement) boolean
removeLastOccurrence
(Object pElement) reversed()
private int
reverseIndex
(int pIndex) int
size()
subList
(int pStartIndex, int pEndIndex) 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 pIndex)
-