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