|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An iterator of ordered, non-overlapping date ranges. This iterator behaves similarly to java.util.ListIterator. The implicit cursor of the iterator is always between date ranges. Calls to nextFrom and nextTo return the dates of the range immediately ahead or the cursor, while calls to previousFrom and previousTo return the dates of the range immediately behind the cursor. These calls return null if the cursor is at the end of the sequence. The "from" date is always inclusive, while the "to" date is always exclusive.
| Method Summary | |
boolean |
hasNext()
Indicates if this iterator has a next date range to report. |
boolean |
hasPrevious()
Indicates if this iterator has a previous date range to report. |
void |
next()
Advances this iterator to the next date range in the sequence. |
java.util.Date |
nextFrom()
Returns the starting date of the next date range. |
java.util.Date |
nextTo()
Returns the ending date of the next date range. |
void |
previous()
Advances this iterator to the previous date range in the sequence. |
java.util.Date |
previousFrom()
Returns the starting date of the preceding date range. |
java.util.Date |
previousTo()
Returns the ending date of the preceding date range. |
| Method Detail |
public boolean hasNext()
true if this iterator has a next date range to reportpublic boolean hasPrevious()
true if this iterator has a previous date range to reportpublic void next()
java.util.ConcurrentModificationException - if the underlying dates have potentially
changed (optional)
java.util.NoSuchElementException - if the iterator is currently positioned after
the last date range in the sequencepublic java.util.Date nextFrom()
public java.util.Date nextTo()
public void previous()
java.util.ConcurrentModificationException - if the underlying dates have potentially
changed (optional)
java.util.NoSuchElementException - if the iterator is currently positioned before
the first date range in the sequencepublic java.util.Date previousFrom()
public java.util.Date previousTo()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||