extract
inline fun <Res, T> extract(crossinline f: (Res) -> T?): CheckBuilder.Find<T>
Content copied to clipboard
Allows defining extraction CheckBuilders outside of the From context in ActionCheckBuilder.check. See also From.extract.
Java API to define extraction CheckBuilders. This resolves the Class of the extracted type X from the Function object.
See the other overload if it does not work as expected.
fun <Res, X> extract(f: Function<Res, X?>, xClass: Class<X>): CheckBuilder.Find<X>
Content copied to clipboard
Java API to define extraction CheckBuilders.