public class CommandSerializerRegistry
Responsible for providing interface CommandSerializer
interface CommandSerializer
Modifier and Type | Class and Description |
---|---|
static class |
CommandSerializerRegistry.Companion |
Modifier and Type | Field and Description |
---|---|
static CommandSerializerRegistry.Companion |
Companion |
Modifier and Type | Method and Description |
---|---|
com.tomtom.online.sdk.common.functional.Try<com.tomtom.online.sdk.connectivity.core.command.CommandSerializer> |
serializerFor(java.lang.Class<? extends com.tomtom.online.sdk.connectivity.core.command.Command> type)
Returns Try.Success when
interface CommandSerializer is present, otherwise returns Success.Failure with exception SerializerNotFoundException |
public static CommandSerializerRegistry.Companion Companion
public com.tomtom.online.sdk.common.functional.Try<com.tomtom.online.sdk.connectivity.core.command.CommandSerializer> serializerFor(java.lang.Class<? extends com.tomtom.online.sdk.connectivity.core.command.Command> type)
Returns Try.Success when interface CommandSerializer
is present, otherwise returns Success.Failure with exception SerializerNotFoundException