|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A forward and reverse mechanism to step through and (possibly) alter a dated list.
Iterator,
DatedList| Method Summary | |
void |
add(java.lang.Object value,
java.util.Date from,
java.util.Date to)
Inserts the specified element into the underlying list for the specified date range (optional operation). |
boolean |
hasPrevious()
Indicates if the iteration has a previous element. |
int |
nextIndex()
Returns the index of the next element to be returned by next. |
java.lang.Object |
previous()
Returns the previous element in the iteration. |
int |
previousIndex()
Returns the index of the next element to be returned by previous. |
void |
set(java.lang.Object value,
java.util.Date from,
java.util.Date to)
Replaces the element last returned by a call to next or
previous with the specified element for the specified
date range (optional operation). |
| Methods inherited from interface sos.dated.util.Iterator |
hasNext, next, remove |
| Method Detail |
public void add(java.lang.Object value,
java.util.Date from,
java.util.Date to)
value - element to add to listfrom - start of date range (inclusive) to add the elementto - end of date range (exclusive) to add the element
java.lang.NullPointerException - if from or to is null
java.lang.IllegalArgumentException - if from does not precede topublic boolean hasPrevious()
true if this iterator will not throw an
NoSuchElementException in its next call to previouspublic int nextIndex()
next.
next.public java.lang.Object previous()
java.util.ConcurrentModificationException - if the underlying list has
unexpectly changed at the date of iterationpublic int previousIndex()
previous.
previous.
public void set(java.lang.Object value,
java.util.Date from,
java.util.Date to)
next or
previous with the specified element for the specified
date range (optional operation).
value - element to substitute for the element last returned by next
or previousfrom - start of date range (inclusive) to replace the elementto - end of date range (exclusive) to replace the element
java.lang.UnsupportedOperationException - if this iterator does not support
this operation
java.lang.NullPointerException - if from or to is null
java.lang.IllegalArgumentException - if from does not precede to
java.lang.IllegalStateException - if neither next nor previous
has not been called or if remove or add has
already been called since the last call to next or previous
java.lang.UnsupportedOperationException - if this iterator does not support
the replacement of this element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||