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 java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.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 java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll, reversed
-
Field Details
-
array
-
n
protected int nArrays are fixed size; precompute.
-
-
Constructor Details
-
ArrayWrappedInList
-
-
Method Details
-
get
-
size
public int size() -
isEmpty
public boolean isEmpty() -
toArray
-
iterator
-