T
- Component type of the Stream.public abstract static class Stream.Cons<T> extends Object implements Stream<T>
Stream
, consisting of a head
, and tail
.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.
|
boolean |
isEmpty()
Checks if this Traversable is empty.
|
Iterator<T> |
iterator()
An iterator by means of head() and tail().
|
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, 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, length, map, narrow, 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, replace, replaceAll, retainAll, reverse, scan, scanLeft, scanRight, slice, sliding, sliding, sortBy, sortBy, sorted, sorted, span, splitAt, splitAt, splitAtInclusive, spliterator, stringPrefix, subSequence, subSequence, tabulate, tail, tailOption, take, takeRight, takeUntil, takeWhile, transform, unit, unzip, unzip3, update, zip, zipAll, zipWithIndex
indexWhere, lastIndexOfSlice, lastIndexWhere, narrow, reverseIterator, search, search, segmentLength
apply, containsSlice, crossProduct, crossProduct, endsWith, foldRight, indexOf, indexOfSlice, indexOfSlice, indexWhere, iterator, lastIndexOf, lastIndexOfSlice, lastIndexWhere, narrow, prefixLength, startsWith, startsWith
average, containsAll, count, existsUnique, find, findLast, foldLeft, get, hash, headOption, isSingleValued, last, lastOption, max, maxBy, maxBy, min, minBy, minBy, mkString, mkString, mkString, narrow, nonEmpty, product, reduceLeft, reduceLeftOption, reduceRight, reduceRightOption, size, sum
fold, reduce, reduceOption
contains, corresponds, eq, exists, forAll, forEach, getOption, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, narrow, out, out, stderr, stdout, toArray, toCharSeq, toJavaArray, toJavaArray, toJavaCollection, toJavaList, toJavaList, toJavaMap, toJavaMap, toJavaOptional, toJavaSet, toJavaSet, toJavaStream, toLeft, toLeft, toList, toMap, toOption, toQueue, toRight, toRight, toSet, toStack, toStream, toTree, toTry, toTry, toVector
andThen, arity, compose, curried, identity, lift, memoized, reversed, tupled
isMemoized
public T head()
Traversable
head
in interface Traversable<T>
public boolean isEmpty()
Traversable
public Iterator<T> iterator()
Traversable
public boolean equals(Object o)
Value
public int hashCode()
Value
See Object.hashCode().
Copyright © 2017. All Rights Reserved.