Class ArrayWrappedInList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
org.antlr.stringtemplate.language.ArrayWrappedInList
- All Implemented Interfaces:
Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection
Turn an array into a List; subclass ArrayList for easy development, but
it really doesn't use super stuff for anything. Ensure we create
ArrayIterator for this List.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
protected int
Arrays are fixed size; precompute.Fields inherited from class AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, getFirst, getLast, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, sort, spliterator, subList, toArray, trimToSize
Methods inherited from class AbstractCollection
containsAll, toString
Methods inherited from interface Collection
parallelStream, stream, toArray
Methods inherited from interface List
containsAll, reversed
-
Field Details
-
array
-
n
protected int nArrays are fixed size; precompute.
-
-
Constructor Details
-
ArrayWrappedInList
-
-
Method Details
-
get
-
size
-
isEmpty
-
toArray
-
iterator
-