/** * Sets the position of the iteration. * * @param pos the new position * @return a flag if this is a valid position */ @Override public boolean setPosition(final int pos) { position = pos; return pos >= 1 && pos <= getMaxPosition(); }
/** * Sets the position of the iteration. * * @param pos the new position * @return a flag if this is a valid position */ @Override public boolean setPosition(final int pos) { position = pos; return pos >= 1 && pos <= getMaxPosition(); }