Package org.tensorics.core.util
Class Instantiators.OngoingInstantiatorCreation<T>
- java.lang.Object
-
- org.tensorics.core.util.Instantiators.OngoingInstantiatorCreation<T>
-
- Type Parameters:
T
- the type of the objects that will be finally created by the instantiators
- Enclosing class:
- Instantiators
public static final class Instantiators.OngoingInstantiatorCreation<T> extends java.lang.Object
Part of a fluent API to create Instantiators with one arguments.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantiators.OngoingInstantiatorCreation<T>
ofType(InstantiatorType newType)
<A> Instantiator<A,T>
withArgumentType(java.lang.Class<A> argumentClass)
Creates the Instantiator for the previously specified object type and the given type of arguments for the object constructor.
-
-
-
Method Detail
-
ofType
public Instantiators.OngoingInstantiatorCreation<T> ofType(InstantiatorType newType)
-
withArgumentType
public <A> Instantiator<A,T> withArgumentType(java.lang.Class<A> argumentClass)
Creates the Instantiator for the previously specified object type and the given type of arguments for the object constructor. The returned Instantiator is reusable and thread safe, because it does not contain any state.- Parameters:
argumentClass
- the type of the argument of the constructor for the object- Returns:
- a new instantiator
-
-