public static class ItemsSequence.FromCollection<T> extends ItemsSequence<T>
ItemsSequence.FromArray<T>, ItemsSequence.FromCollection<T>, ItemsSequence.FromRAList<T>LAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Constructor and Description |
|---|
FromCollection(Class<T> valueType,
Collection<T> data) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<?> |
dataForPrinting() |
long |
length()
Number of elements that can be accessed through
Sequence.value(long);
negative if sequence is unbounded or allows negative indices. |
FlGenerator<T> |
newGenerator()
Creates a generator.
|
T |
value(long n)
Returns the nth element.
|
randomSeedHint, sequence, sequence, sequence, toStringisUnbounded, negativeIndicestoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitalternateWith, first, fluentData, getValueType, map, map, 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 FromCollection(Class<T> valueType, Collection<T> data)
public FlGenerator<T> newGenerator()
Templatepublic T value(long n)
Sequencepublic long length()
SequenceLengthSequence.value(long);
negative if sequence is unbounded or allows negative indices.protected Collection<?> dataForPrinting()
dataForPrinting in class ItemsSequence<T>Copyright © 2019. All rights reserved.