public class LazyFetcher extends FetcherWithScalar
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LazyFetcher.LazyCombinedValues<T> |
static interface |
LazyFetcher.Template |
AbstractFetcher.CombinableValues<T>FlCardinality.FlFetcherCardinality.Fetcher| Constructor and Description |
|---|
LazyFetcher(DataSource<Integer> lengthGenerator) |
LazyFetcher(FetcherWithScalar src) |
LazyFetcher(int length) |
LazyFetcher(int length,
Distribution distribution) |
LazyFetcher(int min,
int max) |
LazyFetcher(int min,
int max,
Distribution distribution) |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
any(Generator<T> generator) |
static LazyFetcher |
get(int length) |
static LazyFetcher |
get(int min,
int max) |
protected <T> AbstractFetcher.CombinableValues<T> |
newValues(int n,
DataSource<? extends T> g) |
int |
nextLength()
The next number of elements that would have been fetched.
|
<T> LazyValues<T> |
of(DataSource<T> generator)
Fetches elements from
generator. |
<T> LazyValues<T> |
ofEach(DataSource<? extends T>... generators)
Fetches elements from each generator.
|
StringBuilder |
toString(StringBuilder sb) |
static <T> LazyValues<T> |
unbound(DataSource<T> generator) |
nextScalarclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasConsumerSource, fluentCardinality, toFetchernext, toGeneratorfluentData, generate, generate, getwrapgetValueTypetoGenerators, toGeneratorspublic LazyFetcher(int length)
public LazyFetcher(DataSource<Integer> lengthGenerator)
public LazyFetcher(int length,
Distribution distribution)
public LazyFetcher(int min,
int max)
public LazyFetcher(int min,
int max,
Distribution distribution)
public LazyFetcher(FetcherWithScalar src)
public static <T> T any(Generator<T> generator)
public static <T> LazyValues<T> unbound(DataSource<T> generator)
public static LazyFetcher get(int length)
public static LazyFetcher get(int min, int max)
public int nextLength()
Cardinality.FetchernextLength in interface Cardinality.FetchernextLength in class AbstractFetcherpublic <T> LazyValues<T> of(DataSource<T> generator)
Cardinality.Fetchergenerator.of in interface Cardinality.Fetcherof in interface FlCardinality.FlFetcherof in class AbstractFetcherpublic <T> LazyValues<T> ofEach(DataSource<? extends T>... generators)
Cardinality.FetcherofEach in interface Cardinality.FetcherofEach in interface FlCardinality.FlFetcherofEach in class AbstractFetcherprotected <T> AbstractFetcher.CombinableValues<T> newValues(int n, DataSource<? extends T> g)
newValues in class AbstractFetcherpublic StringBuilder toString(StringBuilder sb)
toString in interface StringifytoString in class FetcherWithScalarCopyright © 2019. All rights reserved.