@Override public StopTime get(int index) { if (index < 0 || index >= size) { throw new NoSuchElementException(); } StopTime stopTime = new StopTime(); stopTime.setProxy(new StopTimeProxyImpl(index)); return stopTime; }
@Override public StopTime next() { if (!hasNext()) { throw new NoSuchElementException(); } StopTime stopTime = new StopTime(); stopTime.setProxy(new StopTimeProxyImpl(index)); index++; return stopTime; }