asInt

open fun <R : Number?> asInt(adapter: (T) -> R): PropertyMapper.Source<Integer>

Return an adapted version of the source with Integer type.

Return

a new adapted source instance

Parameters

<R>

the resulting type

adapter

an adapter to convert the current value to a number.