|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<Token>
ptolemy.caltrop.util.PtArrayList
public class PtArrayList
A List representation of an ArrayToken.
| Red (cxh) |
| Red (cxh) |
| Field Summary | |
|---|---|
private ArrayToken |
_arrayToken
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
PtArrayList(ArrayToken arrayToken)
Construct a PtArrayList from an ArrayToken. |
|
| Method Summary | |
|---|---|
Token |
get(int index)
Get the token at the given index. |
int |
size()
Return the size of the array. |
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Field Detail |
|---|
private ArrayToken _arrayToken
| Constructor Detail |
|---|
public PtArrayList(ArrayToken arrayToken)
arrayToken - The arrayToken with which to construct the List.| Method Detail |
|---|
public Token get(int index)
get in interface java.util.List<Token>get in class java.util.AbstractList<Token>index - The index of the desired element.
ArrayIndexOutOfBoundException - If the specified index is
outside the range of the token array.public int size()
size in interface java.util.Collection<Token>size in interface java.util.List<Token>size in class java.util.AbstractCollection<Token>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||