public abstract class BaseLinkedScanner<T,R> extends BaseScanner<R>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected Scanner<T> |
input |
current| Constructor and Description |
|---|
BaseLinkedScanner(Scanner<T> input) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advance()
Try to update current to the next item, if there is one.
|
protected abstract boolean |
advanceInternal() |
void |
close()
Override to cleanup any resources.
|
protected void |
closeInternal()
Extend to close internal resources before the input scanner is closed.
|
currentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadvanceUntil, advanceWhile, allMatch, anyMatch, append, append, append, apply, batch, collate, collate, collect, collect, concat, concat, concat, concatIter, count, deduplicateConsecutive, deduplicateConsecutiveBy, distinct, distinctBy, each, empty, exclude, findFirst, findLast, findMax, findMin, flush, forEach, generate, groupBy, groupBy, groupBy, groupBy, hasAny, include, isEmpty, iterable, iterate, iterator, limit, link, list, listTo, map, maxN, minN, noneMatch, of, of, of, of, of, ofNullable, parallel, prefetch, reduce, reduce, retain, reverse, sample, shuffle, skip, sort, sort, splitBy, stream, streamDoubles, streamInts, streamLongs, take, then, toArray, toMap, toMap, toMap, toMap, toMap, toMapSupplied, toMapSupplied, toMapSupplied, toMapSuppliedprotected abstract boolean advanceInternal()
public final boolean advance()
Scannerprotected void closeInternal()
public final void close()
ScannerCopyright © 2009–2022. All rights reserved.