public class AlertReader extends AbstractCloseableIterator<Alert>
|Modifier and Type||Method and Description|
Returns the next element.
endOfData, hasNext, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected Alert computeNext()
AbstractCloseableIterator.endOfData()when there are no elements left in the iteration. Failure to do so could result in an infinite loop.
The initial invocation of
this method, as does the first invocation of
next following each successful call to
next. Once the
implementation either invokes
endOfData or throws an exception,
computeNext is guaranteed to never be called again.
If this method throws an exception, it will propagate outward to the
next invocation that invoked this method. Any
further attempts to use the iterator will result in an
The implementation of this method may not invoke the
next methods on this instance; if it does, an
IllegalStateException will result.
public void close()
Copyright © 2018 Cask Data, Inc.. All rights reserved.