|
Side of Software Dated Collections Library 2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - the type of elements being iterated overD - the type of dates for which this iterator appliespublic interface ListIterator<E,D>
A forward and reverse mechanism to step through and (possibly) alter a dated list.
Iterator,
DatedList| Method Summary | |
|---|---|
void |
add(E value,
D from,
D 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. |
E |
previous()
Returns the previous element in the iteration. |
int |
previousIndex()
Returns the index of the next element to be returned by previous. |
void |
set(E value,
D from,
D 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 |
|---|
void add(E value,
D from,
D 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 toboolean hasPrevious()
true if this iterator will not throw an
NoSuchElementException in its next call to previousint nextIndex()
next.
next.E previous()
ConcurrentModificationException - if the underlying list has
unexpectly changed at the date of iterationint previousIndex()
previous.
previous.
void set(E value,
D from,
D 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
|
Side of Software Dated Collections Library 2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||