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_300499_) getFirst()
private int
getIndex
(int p_299728_) private T
getInner
(int p_299306_) getLast()
private void
grow()
boolean
offerFirst
(T p_300075_) boolean
peekLast()
pollLast()
remove
(int p_297670_) boolean
removeFirstOccurrence
(Object p_300960_) boolean
boolean
removeLastOccurrence
(Object p_297293_) void
replaceAll
(UnaryOperator<T> p_299491_) reversed()
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
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_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>
- 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>
-