Interface ObjectConverter<O,V extends org.msgpack.value.Value>
-
- Type Parameters:
O
- the source object typeV
- the target MessagePack entity type
- All Superinterfaces:
Converter
,Serializable
- All Known Implementing Classes:
DefaultBigDecimalToExtensionValueConverter
,DefaultBooleanToBooleanValueConverter
,DefaultByteArrayToBinaryValueConverter
,DefaultCharacterToStringValueConverter
,DefaultDoubleToFloatValueConverter
,DefaultFloatToFloatValueConverter
,DefaultIntegerToIntegerValueConverter
,DefaultListToArrayValueConverter
,DefaultLongToIntegerValueConverter
,DefaultMapToMapValueConverter
,DefaultNullToNilValueConverter
,DefaultPackableObjectConverter
,DefaultShortToIntegerValueConverter
,DefaultStringToStringValueConverter
,DefaultUUIDToExtensionValueConverter
public interface ObjectConverter<O,V extends org.msgpack.value.Value> extends Converter
Basic interface for converters from Java objects to MessagePack entities for a particular class
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canConvertObject(O object)
Optional method for determining if this specific object can be converted to the specifiedValue
type.V
toValue(O object)
Convert Java object to a MessagePack entity
-
-
-
Method Detail
-
toValue
V toValue(O object)
Convert Java object to a MessagePack entity- Parameters:
object
- object- Returns:
- entity
-
canConvertObject
default boolean canConvertObject(O object)
Optional method for determining if this specific object can be converted to the specifiedValue
type.- Parameters:
object
- the object to be converted- Returns:
- true, if the object csn be converted
-
-