|
|||||||||
| 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<IntToken>
ptolemy.caltrop.util.IntegerList
public class IntegerList
A sparse list of integers.
| Red (cxh) |
| Red (cxh) |
| Field Summary | |
|---|---|
private int |
_a
|
private int |
_b
|
private caltrop.interpreter.Context |
_context
|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
IntegerList(caltrop.interpreter.Context context,
int a,
int b)
Construct a list of Integers IntegerList object. |
|
| Method Summary | |
|---|---|
IntToken |
get(int n)
Return an integer from the Caltrop interpreter context. |
int |
size()
The size of the list. |
| 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 caltrop.interpreter.Context _context
private int _a
private int _b
| Constructor Detail |
|---|
public IntegerList(caltrop.interpreter.Context context,
int a,
int b)
context - a Caltrop interpreter context.a - The lower limit of the range of integers.b - The upper limit of the range of integers.| Method Detail |
|---|
public IntToken get(int n)
get in interface java.util.List<IntToken>get in class java.util.AbstractList<IntToken>n - The integer that is added to the a value and returned
n+a must be less than or equal to b.
public int size()
size in interface java.util.Collection<IntToken>size in interface java.util.List<IntToken>size in class java.util.AbstractCollection<IntToken>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||