Methods Summary |
---|
public int | getCount()
return state.index + 1;
|
public int | getIndex()
return state.index;
|
public boolean | isEven()
return ((state.index + 1) % 2) == 0;
|
public boolean | isFirst()
return state.index == 0;
|
public boolean | isLast()
return state.last;
|
public boolean | isOdd()
return ((state.index + 1) % 2) == 1;
|
public int | modulus(int operand)
return (state.index + 1) % operand;
|