|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SDBIterator
The SDBIterator interface is a simple interface designed for efficient implementation. There is no hasNext() method, as this method can be inefficient for the kinds of iterations used in the SDB system. The valid() method provides similar functionality slightly different semantics. Usage example: for(iter.init(); iter.valid(); iter.next()){ System.out.println(iter); }
Method Summary | |
---|---|
void |
end()
Advance the iterator to the last valid value in the iteration. |
void |
init()
Perform any necessary initialization, and set the iterator value to the first value in the iteration. |
boolean |
next()
Advance the iterator by one step. |
boolean |
valid()
Return true if the iterator currently has a valid value, false otherwise. |
Method Detail |
---|
void init()
boolean next()
boolean valid()
void end()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |