@Override public Object previous() { final int i = myCurrentIndex - 1; if (i < 0) throw new NoSuchElementException(); final Object previous = myElements[mySpeedSearch.convertIndexToModel(i)]; myCurrentIndex = i; return previous; }
@Override public Object next() { if (myCurrentIndex + 1 > myElements.length) throw new NoSuchElementException(); return myElements[mySpeedSearch.convertIndexToModel(myCurrentIndex++)]; }