public class EmptySequence<T> extends BoundedSequence<T>
LAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Constructor and Description |
|---|
EmptySequence() |
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
long |
length()
Number of elements that can be accessed through
Sequence.value(long);
negative if sequence is unbounded or allows negative indices. |
static <T> EmptySequence<T> |
noValues()
Returns a sequence with length zero.
|
long |
randomSeedHint() |
StringBuilder |
toString(StringBuilder sb) |
T |
value(long n)
Returns the nth element.
|
isUnbounded, negativeIndicestoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalternateWith, first, fluentData, map, map, newGenerator, peek, random, random, random, random, repeat, shuffle, sorted, split, split, stream, then, withaggregate, aggregate, alternateWith, distinct, few, filter, first, first, flatMap, many, map, mixWith, several, shuffle, snapshot, some, then, toGenerator, transform, withall, cached, fetch, one, three, transformSource, twotoGenerators, toGeneratorsisInRange, min, toLongpublic static <T> EmptySequence<T> noValues()
T - public T value(long n)
Sequencepublic long length()
SequenceLengthSequence.value(long);
negative if sequence is unbounded or allows negative indices.public Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.public long randomSeedHint()
randomSeedHint in interface FlSequence<T>randomSeedHint in class BoundedSequence<T>public StringBuilder toString(StringBuilder sb)
Copyright © 2019. All rights reserved.