builder
fun <I, O> builder(inputType: Class<I & Any>, outputType: Class<O & Any>): FunctionNode.Builder<I, O>
Returns a FunctionNode.Builder whose node reads inputs as inputType and writes outputType outputs as JSON, for setting properties that of does not take.
Throws
if Jackson cannot read and write inputType or write outputType, or if a port type has no single concrete JSON shape.
fun <I, O> builder(inputType: TypeReference<I>, outputType: TypeReference<O>): FunctionNode.Builder<I, O>
Like builder with classes, for generic port types such as List<String>.
fun <I, O> builder(inputType: Class<I & Any>, outputType: TypeReference<O>): FunctionNode.Builder<I, O>
Like builder with classes, for a generic output type.
fun <I, O> builder(inputType: TypeReference<I>, outputType: Class<O & Any>): FunctionNode.Builder<I, O>
Like builder with classes, for a generic input type.