ptolemy.caltrop.util
Class PtArrayList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byptolemy.caltrop.util.PtArrayList
All Implemented Interfaces:
java.util.Collection, java.util.List

public class PtArrayList
extends java.util.AbstractList
implements java.util.List

FIXME: What does this class do?

Since:
Ptolemy II 4.0
Version:
$Id: PtArrayList.java,v 1.15 2004/04/13 16:46:03 cxh Exp $
Author:
Jörn W. Janneck
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PtArrayList(ArrayToken arrayToken)
          Construct a PtArrayList from an ArrayToken
 
Method Summary
 java.lang.Object 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
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

PtArrayList

public PtArrayList(ArrayToken arrayToken)
Construct a PtArrayList from an ArrayToken

Method Detail

get

public java.lang.Object get(int index)
Get the token at the given index. The type of the return

Specified by:
get in interface java.util.List
Parameters:
index - The index of the desired element.
Returns:
The token contained in this array token at the specified index.
Throws:
ArrayIndexOutOfBoundException - If the specified index is outside the range of the token array.

size

public int size()
Return the size of the array

Specified by:
size in interface java.util.List