T - public interface ValueSource<T> extends Typed<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ValueSource.FactoryMap |
| Modifier and Type | Method and Description |
|---|---|
static <T> ValueSource<T> |
constant(T value) |
static <T> ValueSource<T> |
forField(Class<?> clazz,
String name) |
static <T> ValueSource<T> |
fromDataSource(DataSource<? extends T> source) |
static <T> ValueSource<T> |
fromDataSupply(Supplier<? extends DataSource<? extends T>> source) |
static <T> ValueSource<T> |
fromFunction(Function<? super ValueGenerator.ValueMap,? extends T> function) |
static <T> ValueSource<T> |
fromGenerator(ValueGenerator<? extends T> gen) |
ValueGenerator<? extends T> |
generate(ValueSource.FactoryMap factoryMap) |
static <T> ValueSource<T> |
getKey(String key) |
default Class<T> |
getValueType()
Returns the type of values produced/contained by this instance.
|
static <T> ValueSource<T> |
nextKey(String key) |
ValueGenerator<? extends T> generate(ValueSource.FactoryMap factoryMap)
default Class<T> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface Typed<T>static <T> ValueSource<T> fromGenerator(ValueGenerator<? extends T> gen)
static <T> ValueSource<T> fromFunction(Function<? super ValueGenerator.ValueMap,? extends T> function)
static <T> ValueSource<T> fromDataSource(DataSource<? extends T> source)
static <T> ValueSource<T> fromDataSupply(Supplier<? extends DataSource<? extends T>> source)
static <T> ValueSource<T> constant(T value)
static <T> ValueSource<T> nextKey(String key)
static <T> ValueSource<T> getKey(String key)
static <T> ValueSource<T> forField(Class<?> clazz, String name)
Copyright © 2019. All rights reserved.