toInstance

open fun <R> toInstance(factory: (T) -> R): R

Complete the mapping by creating a new instance from the non-filtered value.

Return

the instance

Parameters

<R>

the resulting type

factory

the factory used to create the instance

Throws

if the value has been filtered