|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocatorIterator
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 | |
---|---|
java.lang.Object |
element()
Shortcut for locator().element(). |
java.lang.Object |
key()
Shortcut for locator().key() |
Locator |
locator()
|
Locator |
nextLocator()
|
Methods inherited from interface nz.ac.waikato.jdsl.core.api.ObjectIterator |
---|
hasNext, nextObject, object, reset |
Method Detail |
---|
Locator nextLocator() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- if iterator has moved past
the last locatorLocator locator() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- When the iterator is in its
initial, before-the-first-locator statejava.lang.Object key() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- When the iterator is in its
initial, before-the-first-locator statejava.lang.Object element() throws java.util.NoSuchElementException
java.util.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 |