T - Component type of the Stream.public static final class LazyStream.Empty<T> extends java.lang.Object implements LazyStream<T>, java.io.Serializable
This is a singleton, i.e. not Cloneable.
LazyStream.Empty<T>, LazyStream.LazyCons<T>javaslang.collection.Stream.Cons<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
T |
head() |
static <T> LazyStream.Empty<T> |
instance()
Returns the singleton empty Stream instance.
|
boolean |
isEmpty() |
javaslang.collection.Iterator<T> |
iterator()
An iterator by means of head() and tail().
|
java.util.function.Supplier<T> |
lazyHead() |
LazyStream<T> |
tail() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitanyM, append, appendAll, appendSelf, clear, collect, collect, collectable, collector, combinations, combinations, cons, crossProduct, crossProduct, crossProduct, cycle, distinct, distinctBy, distinctBy, drop, dropRight, dropUntil, dropWhile, empty, fill, filter, flatMap, from, from, fromStream, futures, futures, futureStream, futureStream, gen, gen, get, groupBy, grouped, hasDefiniteSize, headOption, indexOf, init, initOption, insert, insertAll, intersperse, isTraversableAgain, lastIndexOf, length, map, match, of, of, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, padTo, partition, patch, peek, permutations, prepend, prependAll, range, range, range, rangeBy, rangeBy, rangeBy, rangeBy, rangeClosed, rangeClosed, rangeClosed, rangeClosedBy, rangeClosedBy, rangeClosedBy, rangeClosedBy, remove, removeAll, removeAll, removeAt, removeFirst, removeLast, repeat, replace, replaceAll, retainAll, reverse, scan, scanLeft, scanRight, seq, sequenceM, slice, sliding, sliding, sort, sort, sortBy, sortBy, span, splitAt, splitAt, splitAtInclusive, spliterator, stream, streamable, stringPrefix, subSequence, subSequence, tabulate, tailOption, take, takeRight, takeUntil, takeWhile, toAsyncBlockingQueue, toAsyncQueue, toAsyncQueue, toCollection, toStream, toTraversable, unit, unzip, unzip3, update, zip, zipAll, zipWithIndexindexWhere, lastIndexOfSlice, lastIndexWhere, reverseIterator, segmentLengthapply, containsSlice, endsWith, foldRight, indexOf, indexOfSlice, indexOfSlice, indexWhere, iterator, lastIndexOf, lastIndexOfSlice, lastIndexWhere, prefixLength, startsWith, startsWith, transformaverage, containsAll, count, existsUnique, find, findLast, foldLeft, get, hash, isSingleValued, last, lastOption, max, maxBy, maxBy, min, minBy, minBy, mkString, mkString, mkString, product, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, size, sumcontains, corresponds, eq, exists, forAll, forEach, getOption, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, isDefined, out, out, stderr, stdout, toArray, toCharSeq, toJavaArray, toJavaArray, toJavaList, toJavaMap, toJavaOptional, toJavaSet, toJavaStream, toLeft, toLeft, toList, toMap, toOption, toQueue, toRight, toRight, toSet, toStack, toTree, toTry, toTry, toVectorpublic java.util.function.Supplier<T> lazyHead()
lazyHead in interface LazyStream<T>public static <T> LazyStream.Empty<T> instance()
T - Component type of the Streampublic boolean isEmpty()
public javaslang.collection.Iterator<T> iterator()
LazyStreampublic LazyStream<T> tail()
tail in interface LazyStream<T>tail in interface javaslang.collection.LinearSeq<T>tail in interface javaslang.collection.Seq<T>tail in interface javaslang.collection.Stream<T>tail in interface javaslang.collection.Traversable<T>public boolean equals(java.lang.Object o)
equals in interface javaslang.Value<T>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface javaslang.Value<T>hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface javaslang.Value<T>toString in class java.lang.Object