String () { if (repositoryCommits.size() == 0 || currentPosition >= repositoryCommits.size()) throw new NoSuchElementException(); String result = repositoryCommits.get(currentPosition); currentPosition++; return result; }