findConverter

fun findConverter(source: Any, expectedOid: Int, context: SerializationContext): ParameterConverter<Any>?

Finds the converter that would claim a value, without converting anything.

Return

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

Parameters

source

The value being sent.

expectedOid

The OID the server expects, or 0 when it is not known.

context

Passed on to each candidate's canConvert.