findConverter

fun findConverter(sourceClass: KClass<*>, expectedType: KType, sourceType: PgType, context: DeserializationContext): ResultConverter<Any, *>?

Finds the converter that claims a value, searching this registry and then its parent.

Return

The first converter to claim the value, or null if none does.

Parameters

sourceClass

The class of the decoded value.

expectedType

The Kotlin type wanted.

sourceType

The PostgreSQL type of the value.

context

Passed on to each candidate's canConvert.