public class Factory extends Object
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
static AntennaGainFactory |
antennaGainFactory() |
static <T> T |
build(T prototype)
method that returns an immutable instance of
T . |
static CorrelationModeFactory |
correlationModes() |
static CoverageRadiusFactory |
coverageRadii() |
static DistributionFactory |
distributionFactory()
Get the factory handling the creation of distributions
|
static EventProcessingFactory |
eventProcessors() |
static DataExporter |
exporter() |
static <T> T |
fromInstance(Class<T> clazz,
T t) |
static FunctionFactory |
functionFactory() |
static <T> T |
instance(Class<T> clazz) |
static PluginFactory |
plugins() |
static PropagationModelFactory |
propagationModelFactory()
Get the factory handling the creation or copy of
propagation models
|
static <T> T |
prototype(Class<T> clazz)
This method returns the prototype object to be build.
|
static <T> T |
prototype(Class<T> clazz,
T t)
This method returns the prototype object to be build with values according to the argument t.
|
static ResultFactory |
results() |
static <V> Returner<V> |
when(V value)
Used in conjunction with
prototype() . |
public static DistributionFactory distributionFactory()
public static PropagationModelFactory propagationModelFactory()
public static <T> T prototype(Class<T> clazz)
when
method
to bind return value for methods, e.g. when( prototype.temperature()).thenReturn( 37.5);
public static <T> T prototype(Class<T> clazz, T t)
when
method
to bind return value for methods, e.g. when( prototype.temperature()).thenReturn( 37.5);
public static <V> Returner<V> when(V value)
prototype()
. value
- method invoked on the prototype. Value only used to generate Returner
accepting
the correct return valuepublic static <T> T build(T prototype)
T
.prototype
- a prototype instance with recorded return values to be
set in the final immutable instancepublic static <T> T instance(Class<T> clazz)
public static <T> T fromInstance(Class<T> clazz, T t)
public static AntennaGainFactory antennaGainFactory()
public static CoverageRadiusFactory coverageRadii()
public static EventProcessingFactory eventProcessors()
public static PluginFactory plugins()
public static FunctionFactory functionFactory()
public static CorrelationModeFactory correlationModes()
public static ResultFactory results()
public static DataExporter exporter()
Copyright © 2018. All rights reserved.