/** * Returns the next element. */ @Override public ENTITY_TYPE next() { if (this.hasNext()) { return this.currentSegmentIterator.next(); } else { throw new NoSuchElementException(); } }
/** * Returns the next element. */ @Override public ENTITY_TYPE next() { if (this.hasNext()) { return this.currentSegmentIterator.next(); } else { throw new NoSuchElementException(); } }