|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Iterator over a set of locators. No order of the locators is required by this interface, although order may be promised or required by users of the interface. Conceptually, the iterator starts out positioned before the first locator to be considered. With each call to next(), the iterator skips over another locator and returns the locator skipped over, until the iterator is positioned after the last locator. Note that NoSuchElementException indicates two different failure states: when the iterator is positioned before the first locator, locator(), key(), and element() fail; when the iterator is positioned after the last locator, next() fails.
Method Summary | |
Object |
element()
Shortcut for locator().element(). |
Object |
key()
Shortcut for locator().key() |
Locator |
locator()
|
Locator |
nextLocator()
|
Methods inherited from interface jdsl.core.api.ObjectIterator |
hasNext, nextObject, object, reset |
Method Detail |
public Locator nextLocator() throws NoSuchElementException
NoSuchElementException
- if iterator has moved past
the last locatorpublic Locator locator() throws NoSuchElementException
NoSuchElementException
- When the iterator is in its
initial, before-the-first-locator statepublic Object key() throws NoSuchElementException
NoSuchElementException
- When the iterator is in its
initial, before-the-first-locator statepublic Object element() throws NoSuchElementException
NoSuchElementException
- When the iterator is in its
initial, before-the-first-locator state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |