public class PtArrayList extends java.util.AbstractList<Token>
| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
PtArrayList(ArrayToken arrayToken)
Construct a PtArrayList from an ArrayToken.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
get(int index)
Get the token at the given index.
|
int |
size()
Return the size of the array.
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic PtArrayList(ArrayToken arrayToken)
arrayToken - The arrayToken with which to construct the List.public Token get(int index) throws java.lang.ArrayIndexOutOfBoundsException
get in interface java.util.List<Token>get in class java.util.AbstractList<Token>index - The index of the desired element.java.lang.ArrayIndexOutOfBoundsException - If the specified index is
outside the range of the token array.