public class MappingGenerator<T> extends Object implements CopyableGenerator<T>
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
MappingGenerator(DataSource<Src> src,
Function<? super Src,? extends T> function) |
protected |
MappingGenerator(MappingGenerator<T> src) |
| Modifier and Type | Method and Description |
|---|---|
MappingGenerator<T> |
copy() |
Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
static <In,Out> MappingGenerator<Out> |
map(DataSource<In> src,
Function<? super In,? extends Out> function) |
T |
next()
Produces next value.
|
long |
randomSeedHint() |
StringBuilder |
toString(StringBuilder sb) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsnapshotaggregate, aggregate, all, alternateWith, any, any, cached, distinct, fetch, few, filter, flatMap, fluentData, many, map, map, mixWith, next, next, next, one, peek, several, shuffle, shuffle, some, split, split, stream, then, three, toGenerator, transform, two, withrepeat, transformSourcetoGenerators, toGeneratorspublic MappingGenerator(DataSource<Src> src, Function<? super Src,? extends T> function)
protected MappingGenerator(MappingGenerator<T> src)
public static <In,Out> MappingGenerator<Out> map(DataSource<In> src, Function<? super In,? extends Out> function)
public Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<T>getValueType in interface Typed<T>public MappingGenerator<T> copy()
copy in interface CopyableGenerator<T>public long randomSeedHint()
randomSeedHint in interface FlGenerator<T>public StringBuilder toString(StringBuilder sb)
Copyright © 2019. All rights reserved.