public Key next() throws NoSuchElementException { if (next >= board.length) { throw new NoSuchElementException(); } Key retcode = getVersification().decodeOrdinal(next); calculateNext(); return retcode; }
/** * Find the first unused verse */ protected VerseIterator() { calculateNext(); }
/** * Iterate through the verse elements in the current sort order * * @return A verse Iterator */ public Iterator<Key> iterator() { if (order == Order.BIBLICAL) { return new VerseIterator(); } return new OrderedVerseIterator(getVersification(), board); }