@Override public Iterator<LogRecord> iterator() { return new LogRecordIterator(this.logBlobIterator); } }
@Override public LogRecord next() { if (this.isLogRecordPending) { // Log record already cached. this.isLogRecordPending = false; return this.pendingLogRecord; } if (this.hasNext()) { // Cache the next log record and try again. return this.next(); } else { throw new NoSuchElementException(SR.ITERATOR_EMPTY); } }
return this.hasNext();
return this.hasNext();
@Override public LogRecord next() { if (this.isLogRecordPending) { // Log record already cached. this.isLogRecordPending = false; return this.pendingLogRecord; } if (this.hasNext()) { // Cache the next log record and try again. return this.next(); } else { throw new NoSuchElementException(SR.ITERATOR_EMPTY); } }
@Override public Iterator<LogRecord> iterator() { return new LogRecordIterator(this.logBlobIterator); } }