public boolean setPosition(int position) { if (collection == null) { prepare(); } if (position < 1 || position > collection.size()) { return false; } this.position = position; return true; }
public boolean setPosition(int position) { if (collection == null) { prepare(); } if (position < 1 || position > collection.size()) { return false; } this.position = position; return true; }