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 pIndex) getFirst()private intgetIndex(int pIndex) private TgetInner(int pIndex) getLast()private voidgrow()booleanofferFirst(T pElement) booleanpeekLast()pollLast()remove(int pIndex) booleanremoveFirstOccurrence(Object pElement) booleanbooleanremoveLastOccurrence(Object pElement) voidreplaceAll(UnaryOperator<T> pOperator) reversed()intsize()private voidverifyIndexInRange(int pIndex) private static voidverifyIndexInRange(int pIndex, int pSize) 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 pSize)  
 - 
 - 
Method Details
- 
size
public int size() - 
capacity
public int capacity() - 
getIndex
private int getIndex(int pIndex)  - 
get
 - 
verifyIndexInRange
private static void verifyIndexInRange(int pIndex, int pSize)  - 
verifyIndexInRange
private void verifyIndexInRange(int pIndex)  - 
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>
 
 -