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_300499_) getFirst()
private int
getIndex
(int p_299728_) private T
getInner
(int p_299306_) getLast()
private void
grow()
boolean
boolean
offerFirst
(T p_300075_) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
remove
(int p_297670_) boolean
removeFirstOccurrence
(Object p_300960_) boolean
boolean
removeLastOccurrence
(Object p_297293_) void
replaceAll
(UnaryOperator<T> p_299491_) int
size()
private void
verifyIndexInRange
(int p_298701_) private static void
verifyIndexInRange
(int p_299791_, int p_299333_) 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_299918_)
-
-
Method Details
-
size
public int size() -
capacity
public int capacity() -
getIndex
private int getIndex(int p_299728_) -
get
-
verifyIndexInRange
private static void verifyIndexInRange(int p_299791_, int p_299333_) -
verifyIndexInRange
private void verifyIndexInRange(int p_298701_) -
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>
-