T
- Component type of the List.public static final class List.Cons<T> extends Object implements List<T>, Serializable
List
, consisting of a head
and a tail
.List.Cons<T>, List.Nil<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.
|
int |
length()
Computes the number of elements of this Traversable.
|
List<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, collector, combinations, combinations, crossProduct, distinct, distinctBy, distinctBy, drop, dropRight, dropUntil, dropWhile, empty, fill, filter, flatMap, get, groupBy, grouped, hasDefiniteSize, headOption, indexOf, init, initOption, insert, insertAll, intersperse, isTraversableAgain, lastIndexOf, map, narrow, of, of, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, ofAll, padTo, partition, patch, peek, peek, peekOption, permutations, pop, pop2, pop2Option, popOption, prepend, prependAll, push, push, pushAll, 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, 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, isSingleValued, iterator, 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 int length()
Traversable
Same as Traversable.size()
.
public List<T> tail()
Traversable
public boolean isEmpty()
Traversable
public boolean equals(Object o)
Value
public int hashCode()
Value
See Object.hashCode().
Copyright © 2016. All Rights Reserved.