public class DistinctGenerator<T> extends AbstractStringify implements CopyableGenerator<T>
LAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
|
DistinctGenerator(DataSource<T> source) |
|
DistinctGenerator(DataSource<T> source,
int maxAttempts) |
protected |
DistinctGenerator(DistinctGenerator<T> src) |
| Modifier and Type | Method and Description |
|---|---|
DistinctGenerator<T> |
copy() |
static <T> DistinctGenerator<T> |
distinct(DataSource<T> source) |
static <T> DistinctGenerator<T> |
distinct(DataSource<T> source,
int maxAttempts) |
Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
T |
next()
Produces next value.
|
long |
randomSeedHint() |
StringBuilder |
toString(StringBuilder sb) |
toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 DistinctGenerator(DataSource<T> source)
public DistinctGenerator(DataSource<T> source, int maxAttempts)
protected DistinctGenerator(DistinctGenerator<T> src)
public static <T> DistinctGenerator<T> distinct(DataSource<T> source)
public static <T> DistinctGenerator<T> distinct(DataSource<T> source, int maxAttempts)
public long randomSeedHint()
randomSeedHint in interface FlGenerator<T>public DistinctGenerator<T> copy()
copy in interface CopyableGenerator<T>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 StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class AbstractStringifyCopyright © 2019. All rights reserved.