Package io.datarouter.scanner
Class ComparableScanner<T>
java.lang.Object
io.datarouter.scanner.BaseScanner<R>
io.datarouter.scanner.BaseLinkedScanner<T,T>
io.datarouter.scanner.ComparableScanner<T>
- All Implemented Interfaces:
Scanner<T>,Closeable,AutoCloseable,Comparable<Scanner<T>>
public class ComparableScanner<T> extends BaseLinkedScanner<T,T> implements Comparable<Scanner<T>>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ComparableScanner(Scanner<T> input, Comparator<? super T> comparator) -
Method Summary
Modifier and Type Method Description booleanadvanceInternal()intcompareTo(Scanner<T> that)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.scanner.Scanner
advanceUntil, advanceWhile, allMatch, anyMatch, batch, collate, collate, collect, collect, concat, count, deduplicate, deduplicateBy, distinct, distinctBy, each, exclude, findAny, findFirst, findLast, flush, forEach, hasAny, include, isEmpty, iterable, iterator, limit, link, list, listTo, map, max, min, noneMatch, parallel, prefetch, reduce, retain, sample, skip, sorted, sorted, stream, streamDoubles, streamInts, streamLongs, take, toArray
-
Constructor Details
-
Method Details
-
advanceInternal
public boolean advanceInternal()- Specified by:
advanceInternalin classBaseLinkedScanner<T,T>
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-