public final class EmptyStream extends Object implements Stream<Object>, StreamIterator<Object>
Modifier and Type | Field and Description |
---|---|
static EmptyStream |
INSTANCE |
CLOSEABLE_CLOSER, DEFAULT_BUFFER_SIZE, DEFAULT_BYTE_BUFFER_SIZE
Constructor and Description |
---|
EmptyStream() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Idempotent method for cancellation.
|
boolean |
hasNext() |
StreamIterator<Object> |
iterator() |
Object |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
all, any, buffer, buffer, bufferUntil, bufferUntil, bufferUntil, bufferUntil, bufferWhile, bufferWhile, bufferWhile, bufferWhile, byteBuffers, byteBuffers, byteBuffers, byteBuffers, bytes, bytes, bytes, bytes, cache, cast, chars, chars, collect, collect, collect, compose, composeMaybe, composeSingle, concatWith, contains, count, create, defer, delayStart, dematerialize, distinct, distinct, distinctUntilChanged, distinctUntilChanged, doAfterDispose, doBeforeDispose, doOnComplete, doOnDispose, doOnEmpty, doOnError, doOnNext, doOnStart, doWithIndex, empty, error, error, every, exists, filter, findFirst, first, flatMap, flatMap, flatMap, flatMapJavaStream, forEach, forEach2, from, from, from, from, from, from, from, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, fromArray, generate, generate, get, go, groupBy, groupByList, groupByList, groupByList, groupBySet, groupBySet, groupBySet, hasElements, ignoreDisposalError, ignoreDisposalError, inputStream, interval, isEmpty, join, last, lines, lines, lines, lines, lines, linesFromResource, linesFromResource, linesFromResource, map, mapWithIndex, mapWithIndex, materialize, max, maybe, merge, mergeWith, min, of, of, of, of, of, of, of, of, ordinals, ordinalsLong, permutations, powerSet, prepend, prepend, prepend, println, printStackTrace, range, rangeLong, reduce, reduce, reduceWithFactory, repeat, repeat, repeatElement, repeatElement, repeatLast, repeatLast, retryWhen, retryWhen, reverse, scan, single, skip, skipUntil, skipWhile, sorted, sorted, split, start, statistics, statistics, strings, strings, strings, sumDouble, sumInt, sumLong, switchOnEmpty, switchOnError, take, takeLast, takeUntil, takeWhile, test, to, toList, toList, toMap, toSet, toSet, toStreamJava, transform, transformMaybe, transformSingle, using, using, zipWith
iteratorNullChecked
forEach, spliterator
nextNullChecked
forEachRemaining, remove
public static final EmptyStream INSTANCE
public StreamIterator<Object> iterator()
public void dispose()
StreamIterator
dispose
in interface StreamIterator<Object>
Copyright © 2018–2023. All rights reserved.