Package net.minecraft.util
Class ArrayListDeque<T>
java.lang.Object
java.util.AbstractCollection<E>
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
public class ArrayListDeque<T>
extends AbstractList<T>
implements Serializable, Cloneable, Deque<T>, RandomAccess
- See Also:
-
Nested Class Summary
-
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
element()
void
get
(int p_296055_) getFirst()
private int
getIndex
(int p_296293_) private T
getInner
(int p_295426_) getLast()
private void
grow()
boolean
boolean
offerFirst
(T p_295887_) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
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
-
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>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<T>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<T>
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<T>
-
reversed
-