Package com.fizzed.rocker.runtime
Class IndexOnlyForIterator
- java.lang.Object
-
- com.fizzed.rocker.runtime.IndexOnlyForIterator
-
- All Implemented Interfaces:
ForIterator
public class IndexOnlyForIterator extends java.lang.Object implements ForIterator
ForIterator implementation that only handles theindexand not the actual iteration of elements.
-
-
Constructor Summary
Constructors Constructor Description IndexOnlyForIterator(int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfirst()voidincrement()intindex()booleanlast()
-
-
-
Method Detail
-
increment
public void increment()
-
index
public int index()
- Specified by:
indexin interfaceForIterator
-
first
public boolean first()
- Specified by:
firstin interfaceForIterator
-
last
public boolean last()
- Specified by:
lastin interfaceForIterator
-
-