findConverterByClass

fun findConverterByClass(sourceClass: KClass<*>, expectedOid: Int, context: SerializationContext): ParameterConverter<Any>?

Same as findConverter, keyed on a class rather than an instance.

Return

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

Parameters

sourceClass

The class of 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.