Package net.minecraft.util
Class ArrayListDeque<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
net.minecraft.util.ArrayListDeque<T>
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<T>
,Collection<T>
,Deque<T>
,List<T>
,Queue<T>
,RandomAccess
,SequencedCollection<T>
,ListAndDeque<T>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate Object[]
private int
private static final int
private int
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
int
capacity()
private void
void
get
(int p_296055_) getFirst()
private int
getIndex
(int p_296293_) private T
getInner
(int p_295426_) getLast()
private void
grow()
boolean
offerFirst
(T p_295887_) boolean
peekLast()
pollLast()
remove
(int p_295380_) boolean
removeFirstOccurrence
(Object p_294109_) boolean
boolean
removeLastOccurrence
(Object p_295642_) void
replaceAll
(UnaryOperator<T> p_295123_) reversed()
int
size()
private void
verifyIndexInRange
(int p_296349_) private static void
verifyIndexInRange
(int p_295367_, int p_294503_) Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, 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, stream, toArray
Methods inherited from interface java.util.List
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, sort, spliterator, subList, toArray, toArray
-
Field Details
-
MIN_GROWTH
private static final int MIN_GROWTH- See Also:
-
contents
-
head
private int head -
size
private int size
-
-
Constructor Details
-
ArrayListDeque
public ArrayListDeque() -
ArrayListDeque
public ArrayListDeque(int p_294771_)
-
-
Method Details
-
size
public int size() -
capacity
public int capacity() -
getIndex
private int getIndex(int p_296293_) -
get
-
verifyIndexInRange
private static void verifyIndexInRange(int p_295367_, int p_294503_) -
verifyIndexInRange
private void verifyIndexInRange(int p_296349_) -
getInner
-
set
-
add
-
grow
private void grow() -
remove
-
removeIf
- Specified by:
removeIf
in interfaceCollection<T>
-
copyCount
-
replaceAll
- Specified by:
replaceAll
in interfaceList<T>
-
forEach
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<T>
-
offerLast
-
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>
-
reversed
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<T>
-