public class EagerFetcher extends FetcherWithScalar
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EagerFetcher.EagerCombinedValues<T> |
static interface |
EagerFetcher.Template |
AbstractFetcher.CombinableValues<T>FlCardinality.FlFetcherCardinality.Fetcher| Constructor and Description |
|---|
EagerFetcher(DataSource<Integer> lengthGenerator) |
EagerFetcher(FetcherWithScalar src) |
EagerFetcher(int length) |
EagerFetcher(int length,
Distribution distribution) |
EagerFetcher(int min,
int max) |
EagerFetcher(int min,
int max,
Distribution distribution) |
| Modifier and Type | Method and Description |
|---|---|
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> EagerValues<T> |
of(DataSource<T> generator)
Fetches elements from
generator. |
<T> EagerValues<T> |
ofEach(DataSource<? extends T>... generators)
Fetches elements from each generator.
|
StringBuilder |
toString(StringBuilder sb) |
nextScalarclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasConsumerSource, fluentCardinality, toFetchernext, toGeneratorfluentData, generate, generate, getwrapgetValueTypetoGenerators, toGeneratorspublic EagerFetcher(int length)
public EagerFetcher(DataSource<Integer> lengthGenerator)
public EagerFetcher(int length,
Distribution distribution)
public EagerFetcher(int min,
int max)
public EagerFetcher(int min,
int max,
Distribution distribution)
public EagerFetcher(FetcherWithScalar src)
public int nextLength()
Cardinality.FetchernextLength in interface Cardinality.FetchernextLength in class AbstractFetcherpublic <T> EagerValues<T> of(DataSource<T> generator)
Cardinality.Fetchergenerator.of in interface Cardinality.Fetcherof in interface FlCardinality.FlFetcherof in class AbstractFetcherpublic <T> EagerValues<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.