public class ArrayListStack<E> extends ArrayList<E>
ArrayList that mixes in the stack-like bits from
Stack whilst still being non-synchronized.
(This is copied from ph-commons-util.)modCount| Constructor and Description |
|---|
ArrayListStack() |
ArrayListStack(Collection<? extends E> c) |
ArrayListStack(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
E |
peek() |
E |
pop() |
E |
push(E element) |
int |
search(Object object) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic ArrayListStack()
public ArrayListStack(Collection<? extends E> c)
public ArrayListStack(int initialCapacity)
Copyright © 2008–2026 The University of Edinburgh. All rights reserved.