extract

inline fun <Res, T> extract(crossinline f: (Res) -> T?): CheckBuilder.Find<T>

Allows defining extraction CheckBuilders outside of the From context in ActionCheckBuilder.check. See also From.extract.


fun <Res, X> extract(f: Function<Res, X?>): CheckBuilder.Find<X>

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>

Java API to define extraction CheckBuilders.