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_300499_) getFirst()private intgetIndex(int p_299728_) private TgetInner(int p_299306_) getLast()private voidgrow()booleanofferFirst(T p_300075_) booleanpeekLast()pollLast()remove(int p_297670_) booleanremoveFirstOccurrence(Object p_300960_) booleanbooleanremoveLastOccurrence(Object p_297293_) voidreplaceAll(UnaryOperator<T> p_299491_) reversed()intsize()private voidverifyIndexInRange(int p_298701_) private static voidverifyIndexInRange(int p_299791_, int p_299333_) 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_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:
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>
-