T
- Component type of the Stream.public static final class Stream.Empty<T> extends Object implements Stream<T>, Serializable
This is a singleton, i.e. not Cloneable.
Stream.Cons<T>, Stream.Empty<T>
λ.Memoized
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Clarifies that values have a proper equals() method implemented.
|
int |
hashCode()
Clarifies that values have a proper hashCode() method implemented.
|
T |
head()
Returns the first element of a non-empty Traversable.
|
static <T> Stream.Empty<T> |
instance()
Returns the singleton empty Stream instance.
|
boolean |
isEmpty()
Checks if this Traversable is empty.
|
Iterator<T> |
iterator()
An iterator by means of head() and tail().
|
Stream<T> |
tail()
Drops the first element of a non-empty Traversable.
|
String |
toString()
Clarifies that values have a proper toString() method implemented.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, appendAll, appendSelf, collector, combinations, combinations, concat, concat, cons, continually, continually, crossProduct, cycle, cycle, distinct, distinctBy, distinctBy, drop, dropRight, dropUntil, dropWhile, empty, extend, extend, extend, fill, filter, flatMap, from, from, from, from, get, groupBy, grouped, hasDefiniteSize, indexOf, init, initOption, insert, insertAll, intersperse, isTraversableAgain, iterate, lastIndexOf, leftPadTo, length, map, narrow, of, of, ofAll, 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, removeAll, removeAt, removeFirst, removeLast, replace, replaceAll, retainAll, reverse, scan, scanLeft, scanRight, shuffle, slice, sliding, sliding, sortBy, sortBy, sorted, sorted, span, splitAt, splitAt, splitAtInclusive, spliterator, stringPrefix, subSequence, subSequence, tabulate, tailOption, take, takeRight, takeUntil, takeWhile, transform, unfold, unfoldLeft, unfoldRight, unit, unzip, unzip3, update, zip, zipAll, zipWith, zipWithIndex, zipWithIndex
indexWhere, lastIndexOfSlice, lastIndexWhere, narrow, reverseIterator, search, search, segmentLength
apply, containsSlice, crossProduct, crossProduct, endsWith, foldRight, indexOf, indexOfOption, indexOfOption, indexOfSlice, indexOfSlice, indexOfSliceOption, indexOfSliceOption, indexWhere, indexWhereOption, indexWhereOption, iterator, lastIndexOf, lastIndexOfOption, lastIndexOfOption, lastIndexOfSlice, lastIndexOfSliceOption, lastIndexOfSliceOption, lastIndexWhere, lastIndexWhereOption, lastIndexWhereOption, lift, narrow, prefixLength, startsWith, startsWith, withDefault, withDefaultValue
average, containsAll, count, existsUnique, find, findLast, foldLeft, get, hash, headOption, isDistinct, isOrdered, isSingleValued, last, lastOption, max, maxBy, maxBy, min, minBy, minBy, mkCharSeq, mkCharSeq, mkCharSeq, mkString, mkString, mkString, narrow, nonEmpty, product, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, single, singleOption, size, sum
fold, reduce, reduceOption
collect, collect, contains, corresponds, eq, exists, forAll, forEach, getOption, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, narrow, out, out, stderr, stdout, toArray, toCharSeq, toEither, toEither, toInvalid, toInvalid, toJavaArray, toJavaArray, toJavaCollection, toJavaList, toJavaList, toJavaMap, toJavaMap, toJavaMap, toJavaOptional, toJavaParallelStream, toJavaSet, toJavaSet, toJavaStream, toLeft, toLeft, toLinkedMap, toLinkedMap, toLinkedSet, toList, toMap, toMap, toOption, toPriorityQueue, toPriorityQueue, toQueue, toRight, toRight, toSet, toSortedMap, toSortedMap, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toStack, toStream, toTree, toTry, toTry, toValid, toValid, toValidation, toValidation, toVector
andThen, arity, compose, constant, curried, identity, lift, liftTry, memoized, reversed, tupled
isMemoized
public static <T> Stream.Empty<T> instance()
T
- Component type of the Streampublic T head()
Traversable
head
in interface Traversable<T>
public boolean isEmpty()
Traversable
public Iterator<T> iterator()
Traversable
public Stream<T> tail()
Traversable
public boolean equals(Object o)
Value
public int hashCode()
Value
See Object.hashCode().
Copyright © 2016. All Rights Reserved.