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_300499_) getFirst()private intgetIndex(int p_299728_) private TgetInner(int p_299306_) getLast()private voidgrow()booleanbooleanofferFirst(T p_300075_) booleanpeek()peekLast()poll()pollLast()pop()voidremove()remove(int p_297670_) booleanremoveFirstOccurrence(Object p_300960_) booleanbooleanremoveLastOccurrence(Object p_297293_) voidreplaceAll(UnaryOperator<T> p_299491_) intsize()private voidverifyIndexInRange(int p_298701_) private static voidverifyIndexInRange(int p_299791_, int p_299333_) 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_299918_) 
 
- 
- 
Method Details- 
sizepublic int size()
- 
capacitypublic int capacity()
- 
getIndexprivate int getIndex(int p_299728_) 
- 
get
- 
verifyIndexInRangeprivate static void verifyIndexInRange(int p_299791_, int p_299333_) 
- 
verifyIndexInRangeprivate void verifyIndexInRange(int p_298701_) 
- 
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>
 
 
-