public class RoundRobinSequence<T> extends Object implements FlSequence<T>
LAMBDA_SEED_HINTL_NEGATIVE_INDICES, L_UNBOUNDED, NEGATIVE_INDICES, UNBOUNDED| Modifier | Constructor and Description |
|---|---|
|
RoundRobinSequence(Class<T> valueType,
Sequence<? extends T>[] generators) |
protected |
RoundRobinSequence(RoundRobinSequence<T> src) |
|
RoundRobinSequence(Sequence<? extends T>[] generators) |
| Modifier and Type | Method and Description |
|---|---|
static <T> RoundRobinSequence<T> |
alternate(Sequence<? extends T>... generators) |
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. |
long |
randomSeedHint() |
static <T> RoundRobinSequence<T> |
rotate(Sequence<? extends T>... generators) |
StringBuilder |
toString(StringBuilder sb) |
T |
value(long n)
Returns the nth element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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, isUnbounded, min, negativeIndices, toLongpublic RoundRobinSequence(Class<T> valueType, Sequence<? extends T>[] generators)
protected RoundRobinSequence(RoundRobinSequence<T> src)
public static <T> RoundRobinSequence<T> rotate(Sequence<? extends T>... generators)
public static <T> RoundRobinSequence<T> alternate(Sequence<? extends T>... generators)
public Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<T>getValueType in interface FlSequence<T>getValueType in interface FlTemplate<T>getValueType in interface Typed<T>public long length()
SequenceLengthSequence.value(long);
negative if sequence is unbounded or allows negative indices.length in interface SequenceLengthpublic long randomSeedHint()
randomSeedHint in interface FlSequence<T>public StringBuilder toString(StringBuilder sb)
Copyright © 2019. All rights reserved.