|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A list that is indexed with 'Comparable' instead of ints.
Method Summary | |
java.lang.Object |
get(java.lang.Comparable index)
Get the value at the specified index in the list. |
java.util.Iterator |
iterator()
An iterator over all the DynamicValue elements
of the list. |
boolean |
remove(java.lang.Comparable start,
java.lang.Comparable stop)
Removes all values at the given range. |
void |
set(java.lang.Comparable start,
java.lang.Comparable stop,
java.lang.Object value)
Sets the value at the given range. |
Method Detail |
public java.lang.Object get(java.lang.Comparable index)
index
- the index into the list
public void set(java.lang.Comparable start, java.lang.Comparable stop, java.lang.Object value)
SortedMap
, this means that value is set in the
range from start, inclusive, to stop, exclusive.
start
- the first index to setstop
- the first index that is not setvalue
- all elements in the list in the range [start, stop)
will take this value
java.lang.IllegalArgumentException
- if start is not less than stoppublic boolean remove(java.lang.Comparable start, java.lang.Comparable stop)
SortedMap
, this means that value is set in the
range from start, inclusive, to stop, exclusive.
start
- the first index to removestop
- the first index that is not removed
true
if any elements were removedpublic java.util.Iterator iterator()
DynamicValue
elements
of the list.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |