Package com.fizzed.rocker.runtime
Class IndexOnlyForIterator
java.lang.Object
com.fizzed.rocker.runtime.IndexOnlyForIterator
- All Implemented Interfaces:
ForIterator
ForIterator implementation that only handles the
index and
not the actual iteration of elements.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
index
private int index -
size
private final int size
-
-
Constructor Details
-
IndexOnlyForIterator
public IndexOnlyForIterator(int size)
-
-
Method Details
-
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
-