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 Objectprotected intArrays 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, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods 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
-