Class 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 Detail

      • 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