public interface MessagePackMapperBuilder
MessagePackMapper
Modifier and Type | Method and Description |
---|---|
MessagePackMapper |
build()
Build the mapper instance
|
MessagePackMapperBuilder |
withDefaultArrayValueConverter()
Configure the mapper with default
MP_ARRAY entity to List converter |
MessagePackMapperBuilder |
withDefaultCollectionObjectConverter()
Configure the mapper with default
Collection to MP_ARRAY entity converter |
MessagePackMapperBuilder |
withDefaultListObjectConverter()
Configure the mapper with default
List to MP_ARRAY entity converter |
MessagePackMapperBuilder |
withDefaultMapObjectConverter()
Configure the mapper with default
Map to MP_MAP entity converter |
MessagePackMapperBuilder |
withDefaultMapValueConverter()
Configure the mapper with default
MP_MAP entity to Map converter |
<V extends org.msgpack.value.Value,O> |
withObjectConverter(Class<O> objectClass,
Class<V> valueClass,
ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter
|
<V extends org.msgpack.value.Value,O> |
withObjectConverter(Class<O> objectClass,
ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter
|
<V extends org.msgpack.value.Value,O> |
withObjectConverter(ObjectConverter<O,V> converter)
Configure the mapper with a specified MessagePack object-to-entity converter
|
<V extends org.msgpack.value.Value,O> |
withValueConverter(org.msgpack.value.ValueType valueType,
Class<O> objectClass,
ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter
|
<V extends org.msgpack.value.Value,O> |
withValueConverter(org.msgpack.value.ValueType valueType,
ValueConverter<V,O> converter)
Configure the mapper with a specified MessagePack entity-to-object converter
|
MessagePackMapperBuilder withDefaultMapValueConverter()
MP_MAP
entity to Map
converterMessagePackMapperBuilder withDefaultMapObjectConverter()
Map
to MP_MAP
entity converterMessagePackMapperBuilder withDefaultArrayValueConverter()
MP_ARRAY
entity to List
converterMessagePackMapperBuilder withDefaultCollectionObjectConverter()
Collection
to MP_ARRAY
entity converterMessagePackMapperBuilder withDefaultListObjectConverter()
List
to MP_ARRAY
entity converter<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withValueConverter(org.msgpack.value.ValueType valueType, ValueConverter<V,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 typeconverter
- MessagePack entity-to-object and object-to-entity converterDefaultMessagePackMapper.registerValueConverter(ValueType, ValueConverter)
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withValueConverter(org.msgpack.value.ValueType valueType, Class<O> objectClass, ValueConverter<V,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
- MessagePack entity-to-object and object-to-entity converterDefaultMessagePackMapper.registerValueConverter(ValueType, Class, ValueConverter)
<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(ObjectConverter<O,V> converter)
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returnsconverter
- MessagePack entity-to-object and object-to-entity converter<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(Class<O> objectClass, ObjectConverter<O,V> converter)
V
- MessagePack's entity type that the converter accepts and/or returnsO
- java object's type that the converter accepts and/or returnsobjectClass
- source object classconverter
- MessagePack entity-to-object and object-to-entity converter<V extends org.msgpack.value.Value,O> MessagePackMapperBuilder withObjectConverter(Class<O> objectClass, Class<V> valueClass, ObjectConverter<O,V> converter)
V
- MessagePack entity typeO
- object typeobjectClass
- source object classvalueClass
- target object classconverter
- MessagePack entity-to-object and object-to-entity converterMessagePackMapper build()
Copyright © 2025 Picodata. All rights reserved.