org.apache.tomcat.util.digester
public class: ArrayStack [javadoc |
source]
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.apache.tomcat.util.digester.ArrayStack
All Implemented Interfaces:
List, Serializable, RandomAccess, Cloneable, Collection
Imported copy of the ArrayStack class from
Commons Collections, which was the only direct dependency from Digester.
WARNNG - This class is public solely to allow it to be
used from subpackages of org.apache.commons.digester.
It should not be considered part of the public API of Commons Digester.
If you want to use such a class yourself, you should use the one from
Commons Collections directly.
An implementation of the java.util.Stack API that is based on an
ArrayList instead of a Vector, so it is not
synchronized to protect against multi-threaded access. The implementation
is therefore operates faster in environments where you do not need to
worry about multiple thread contention.
Unlike Stack, ArrayStack accepts null entries.
Also see:
- java.util.Stack
- since:
Digester - 1.6 (from Commons Collections 1.0)
| Methods from java.util.ArrayList: |
|---|
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toArray, toArray, trimToSize |
| Methods from java.util.AbstractList: |
|---|
|
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList |
| Methods from java.util.AbstractCollection: |
|---|
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |