|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WorldIterator
This interface lets the caller access the results of a search in the
gameworld. It is similar in concept to java.sql.ResultSet.
| Field Summary | |
|---|---|
static int |
BEFORE_FIRST
|
| Method Summary | |
|---|---|
FreerailsSerializable |
getElement()
Returns the element the curor is pointing to. |
int |
getIndex()
Returns the index of the element the cursor is pointing to. |
int |
getNaturalNumber()
Returns the number of the row where the cursor is (the first row is 1). |
int |
getRowID()
Returns the number of the row where the cursor is (the first row is 0). |
void |
gotoIndex(int i)
Moves the cursor to the specified index. |
void |
gotoRow(int row)
Moves the cursor to the specified index. |
boolean |
next()
Moves the cursor down one row from its current position. |
boolean |
previous()
Moves the cursor up one row from its current position. |
void |
reset()
Moves the cursor to before the first element and updates any cached values. |
int |
size()
Returns the number of rows. |
| Field Detail |
|---|
static final int BEFORE_FIRST
| Method Detail |
|---|
boolean next()
boolean previous()
void reset()
FreerailsSerializable getElement()
int getIndex()
World.get(KEY key, int index) to retrieve the same element
as is returned by getElement()
int getRowID()
int size()
void gotoIndex(int i)
void gotoRow(int row)
int getNaturalNumber()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||