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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Object[]private intprivate static final intprivate intFields inherited from class java.util.AbstractListmodCount
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidintcapacity()private voidelement()voidget(int p_296055_) getFirst()private intgetIndex(int p_296293_) private TgetInner(int p_295426_) getLast()private voidgrow()booleanbooleanofferFirst(T p_295887_) booleanpeek()peekLast()poll()pollLast()pop()voidremove()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.AbstractListadd, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollectionaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, stream, toArray
- 
Field Details- 
MIN_GROWTHprivate static final int MIN_GROWTH- See Also:
 
- 
contents
- 
headprivate int head
- 
sizeprivate int size
 
- 
- 
Constructor Details- 
ArrayListDequepublic ArrayListDeque()
- 
ArrayListDequepublic ArrayListDeque(int p_294771_) 
 
- 
- 
Method Details- 
sizepublic int size()
- 
capacitypublic int capacity()
- 
getIndexprivate int getIndex(int p_296293_) 
- 
get
- 
verifyIndexInRangeprivate static void verifyIndexInRange(int p_295367_, int p_294503_) 
- 
verifyIndexInRangeprivate void verifyIndexInRange(int p_296349_) 
- 
getInner
- 
set
- 
add
- 
growprivate void grow()
- 
remove
- 
removeIf- Specified by:
- removeIfin interface- Collection<T>
 
- 
copyCount
- 
replaceAll- Specified by:
- replaceAllin interface- List<T>
 
- 
forEach
- 
addFirst
- 
addLast
- 
offerFirst- Specified by:
- offerFirstin interface- Deque<T>
 
- 
offerLast
- 
removeFirst- Specified by:
- removeFirstin interface- Deque<T>
 
- 
removeLast- Specified by:
- removeLastin interface- Deque<T>
 
- 
pollFirst
- 
pollLast
- 
getFirst
- 
getLast
- 
peekFirst
- 
peekLast
- 
removeFirstOccurrence- Specified by:
- removeFirstOccurrencein interface- Deque<T>
 
- 
removeLastOccurrence- Specified by:
- removeLastOccurrencein interface- Deque<T>
 
- 
offer
- 
remove
- 
poll
- 
element
- 
peek
- 
push
- 
pop
- 
descendingIterator- Specified by:
- descendingIteratorin interface- Deque<T>
 
- 
reversed
 
-