|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A type-specific Iterator; provides an additional method to reduce type juggling, and
the possibility to skip elements.
Iterator| Method Summary | |
short |
nextShort()
Returns the next element as a primitive type. |
int |
skip(int n)
Skips the given number of elements. |
| Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
| Method Detail |
public short nextShort()
Iterator.next()public int skip(int n)
The effect of this call is exactly the same as that of
calling Iterator.next() for n times (possibly stopping
if Iterator.hasNext() becomes false).
n - the number of elements to skip.
Iterator.next()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||