|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForEachStatus
Represents the runtime information of each iteration caused by
ForEach
.
The main use is to get the object in the outer iteration:
forEachStatus.previous.each
Method Summary | |
---|---|
java.lang.Integer |
getBegin()
Returns the index (starting from 0) that the iteration begins at, or null if not specified (and 0 is assumed). |
java.lang.Object |
getEach()
Returns the object of this iteration. |
java.lang.Integer |
getEnd()
Returns the index (starting from 0) that the iteration ends at, or null if not specified (and the last element is assumed). |
int |
getIndex()
Returns the index of the current round of the iteration. |
ForEachStatus |
getPrevious()
Returns the status of the enclosing forEach statement. |
Method Detail |
---|
ForEachStatus getPrevious()
java.lang.Object getEach()
int getIndex()
For example, if the iteration starts at the fifth element (forEachBegin is 4), then the first value returned by this method will be 4.
java.lang.Integer getBegin()
java.lang.Integer getEnd()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |