V - public class DefaultFactory<V> extends FactoryBase implements Factory<V>, Factory.FactoryGenerator<V>
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultFactory.Setup<V> |
protected static class |
DefaultFactory.VM |
Factory.FactoryGenerator<T>, Factory.Include<T>NO_VALUELAMBDA_SEED_HINT| Modifier | Constructor and Description |
|---|---|
protected |
DefaultFactory(DefaultFactory parent) |
|
DefaultFactory(FactoryParent parent,
String key,
Class<V> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStep(BiFunction<? super V,? super ValueGenerator.ValueMap,? extends V> step) |
Factory.Include<V> |
asInclude() |
ValueGenerator<V> |
asIncludedGenerator() |
ValueGenerator<V> |
asValueGenerator() |
protected DefaultFactory<V> |
copy(ValueSource.FactoryMap factoryMap) |
V |
create() |
DefaultFactory<V> |
generate() |
protected ValueSource.FactoryMap |
getFactoryMap() |
Class<V> |
getValueType()
Returns the type of values produced/contained by this instance.
|
V |
next()
Produces next value.
|
protected V |
next(ValueGenerator.ValueMap valueMap) |
void |
reset() |
Factory.FactoryGenerator<V> |
set(Object... keyValues) |
<T> FactoriesSetup.ValueDeclaration<T,Factory.FactoryGenerator<V>> |
set(String key) |
String |
toString() |
StringBuilder |
toString(StringBuilder sb) |
addInclude, applyNestedSet, doReset, getDescription, getDescriptionForChild, getSourceFromInclude, initialize, internPeekGenerator, nestedSet, newGenerator, peekGenerator, peekParentGenerator, peekSource, putValueSource, set, valueGeneratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetaggregate, aggregate, all, alternateWith, any, any, cached, distinct, fetch, few, filter, flatMap, fluentData, many, map, map, mixWith, next, next, next, one, peek, randomSeedHint, several, shuffle, shuffle, snapshot, some, split, split, stream, then, three, toGenerator, transform, two, withrepeat, transformSourcetoGenerators, toGeneratorspublic DefaultFactory(FactoryParent parent, String key, Class<V> clazz)
protected DefaultFactory(DefaultFactory parent)
public Class<V> getValueType()
Typednull if the type is unknown;
should never return a primitive type.getValueType in interface FlDataSource<V>getValueType in interface Typed<V>public DefaultFactory<V> generate()
protected DefaultFactory<V> copy(ValueSource.FactoryMap factoryMap)
protected ValueSource.FactoryMap getFactoryMap()
getFactoryMap in class FactoryBaseprotected void addStep(BiFunction<? super V,? super ValueGenerator.ValueMap,? extends V> step)
public String toString()
toString in class FactoryBasepublic StringBuilder toString(StringBuilder sb)
public void reset()
reset in interface Factory<V>reset in class FactoryBaseprotected V next(ValueGenerator.ValueMap valueMap)
public Factory.Include<V> asInclude()
asInclude in interface Factory.FactoryGenerator<V>public ValueGenerator<V> asValueGenerator()
asValueGenerator in interface Factory.FactoryGenerator<V>public ValueGenerator<V> asIncludedGenerator()
public Factory.FactoryGenerator<V> set(Object... keyValues)
set in interface Factory.FactoryGenerator<V>public <T> FactoriesSetup.ValueDeclaration<T,Factory.FactoryGenerator<V>> set(String key)
set in interface Factory.FactoryGenerator<V>Copyright © 2019. All rights reserved.