T - value type@FunctionalInterface public interface Generator<T> extends Supplier<T>, DataSource<T>
If the generator cannot continue, throws GeneratorException.
| Modifier and Type | Method and Description |
|---|---|
default FlGenerator<T> |
fluentData()
Provides access to the fluent generator interface.
|
static <T> FlGenerator<T> |
generate(Class<T> clazz,
Supplier<T> supplier)
Converts a supplier into a typed generator.
|
static <T> FlGenerator<T> |
generate(Supplier<T> supplier)
Converts a supplier into a generator.
|
default T |
get()
Deprecated.
use #next()
|
T |
next()
Produces next value.
|
default Generator<T> |
toGenerator()
Deprecated.
Redundant operation
|
toGenerators, toGeneratorsT next()
GeneratorException - if no more values can be produced@Deprecated default T get()
@Deprecated default Generator<T> toGenerator()
toGenerator in interface DataSource<T>default FlGenerator<T> fluentData()
fluentData in interface DataSource<T>static <T> FlGenerator<T> generate(Supplier<T> supplier)
T - supplier - static <T> FlGenerator<T> generate(Class<T> clazz, Supplier<T> supplier)
T - clazz - supplier - Copyright © 2019. All rights reserved.