public interface MessagePackValueMapper
registerValueConverter(ValueType, Class, ValueConverter) method| Modifier and Type | Method and Description |
|---|---|
<V extends org.msgpack.value.Value,O> |
fromValue(V v)
Create Java object out of its MessagePack representation.
|
<V extends org.msgpack.value.Value,O> |
fromValue(V v,
Class<O> targetClass)
Create Java object out of its MessagePack representation.
|
<V extends org.msgpack.value.Value,O> |
getValueConverter(org.msgpack.value.ValueType valueType,
Class<? extends O> objectClass)
Get a converter capable of converting from the source entity class to the target class
|
<V extends org.msgpack.value.Value,O> |
registerValueConverter(org.msgpack.value.ValueType valueType,
Class<? extends O> objectClass,
ValueConverter<V,? extends O> converter)
Adds a MessagePack entity converter to this mappers instance.
|
<V extends org.msgpack.value.Value,O> |
registerValueConverterWithoutTargetClass(org.msgpack.value.ValueType valueType,
ValueConverter<V,? extends O> converter) |
<V extends org.msgpack.value.Value,O> O fromValue(V v)
throws MessagePackValueMapperException
V - source MessagePack entity typeO - target object typev - MessagePack entityMessagePackValueMapperException - if the corresponding conversion cannot be performed<V extends org.msgpack.value.Value,O> O fromValue(V v,
Class<O> targetClass)
throws MessagePackValueMapperException
V - source MessagePack entity typeO - target object typev - MessagePack entitytargetClass - Java object classMessagePackValueMapperException - if the corresponding conversion cannot be performed<V extends org.msgpack.value.Value,O> void registerValueConverter(org.msgpack.value.ValueType valueType,
Class<? extends O> objectClass,
ValueConverter<V,? extends O> converter)
V - MessagePack's entity type that the converter accepts and/or returnsO - java object's type that the converter accepts and/or returnsvalueType - MessagePack source typeobjectClass - target object classconverter - object-to-entity converterValueConverter<V extends org.msgpack.value.Value,O> void registerValueConverterWithoutTargetClass(org.msgpack.value.ValueType valueType,
ValueConverter<V,? extends O> converter)
<V extends org.msgpack.value.Value,O> Optional<ValueConverter<V,O>> getValueConverter(org.msgpack.value.ValueType valueType, Class<? extends O> objectClass)
V - MessagePack's entity type that the converter accepts and/or returnsO - java object's type that the converter accepts and/or returnsvalueType - MessagePack source typeobjectClass - the target conversion classOptionalCopyright © 2025 Picodata. All rights reserved.