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
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Object[]private intprivate static final intprivate intFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintcapacity()private voidvoidget(int p_296055_) getFirst()private intgetIndex(int p_296293_) private TgetInner(int p_295426_) getLast()private voidgrow()booleanofferFirst(T p_295887_) booleanpeekLast()pollLast()remove(int p_295380_) booleanremoveFirstOccurrence(Object p_294109_) booleanbooleanremoveLastOccurrence(Object p_295642_) voidreplaceAll(UnaryOperator<T> p_295123_) reversed()intsize()private voidverifyIndexInRange(int p_296349_) private static voidverifyIndexInRange(int p_295367_, int p_294503_) Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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:
removeIfin interfaceCollection<T>
-
copyCount
-
replaceAll
- Specified by:
replaceAllin interfaceList<T>
-
forEach
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<T>
-
offerLast
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<T>- Specified by:
removeFirstin interfaceList<T>- Specified by:
removeFirstin interfaceListAndDeque<T>- Specified by:
removeFirstin interfaceSequencedCollection<T>
-
removeLast
- Specified by:
removeLastin interfaceDeque<T>- Specified by:
removeLastin interfaceList<T>- Specified by:
removeLastin interfaceListAndDeque<T>- Specified by:
removeLastin interfaceSequencedCollection<T>
-
reversed
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<T>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<T>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<T>
-