public static class ItemsSequence.FromArray<T> extends ItemsSequence<T>
ItemsSequence.FromArray<T>, ItemsSequence.FromCollection<T>, ItemsSequence.FromRAList<T>LAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Modifier and Type | Method and Description |
|---|---|
protected Collection<?> |
dataForPrinting() |
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. |
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, 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 FromArray(T[] data)
public Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.public 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.