@Override public boolean hasNext() { return index < size(); } @Override public void remove() { throw new UnsupportedOperationException(); }
@Override public T next() { if (!hasNext()) { throw new NoSuchElementException(); } return readItem(index++); } };
@Override public T next() { if (!hasNext()) { throw new NoSuchElementException(); } return readItem(index++); } };
@Override public T next() { if (!hasNext()) { throw new NoSuchElementException(); } return readItem(index++); } };
@Override public boolean hasNext() { return index < size(); } @Override public void remove() { throw new UnsupportedOperationException(); }
@Override public boolean hasNext() { return index < size(); } @Override public void remove() { throw new UnsupportedOperationException(); }