Interface Creator<T>

  • All Superinterfaces:
    java.io.Serializable, scala.Serializable

    public interface Creator<T>
    extends scala.Serializable
    A constructor/factory, takes no parameters but creates a new value of type T every call. Supports throwing Exception in the apply, which the java.util.function.Creator counterpart does not.
    • Method Detail

      • create

        T create()
          throws java.lang.Exception
        This method must return a different instance upon every call.
        Returns:
        (undocumented)
        Throws:
        java.lang.Exception