Package overit.geocall.model
Interface JacksonMapConvertible
- All Known Implementing Classes:
DateTimeRange,LocalizedString
public interface JacksonMapConvertible
Interface that should be implemented by all that datatypes whose want to take in charge the serialization/deserialization
to and from a
Map.-
Method Summary
Modifier and TypeMethodDescriptionExtract the current instance values into aMapvoidtransferValues(@NotNull BeanPropertyDefinition field, @NotNull Map<String, Object> values, boolean nullValues) Move values from the passed Map into the current instance.
-
Method Details
-
extractValues
Extract the current instance values into aMap- Parameters:
field- field reference from which the values should be extracted- Returns:
- a
Mapcontaining all the instance values
-
transferValues
void transferValues(@NotNull @NotNull BeanPropertyDefinition field, @NotNull @NotNull Map<String, Object> values, boolean nullValues) Move values from the passed Map into the current instance.Implementations should remove the moved values from the passed map to avoid any re-usage of that value
- Parameters:
field- field reference to which the values should be addedvalues-Mapcontaining all the values that should be added to the current instancenullValues- specify if the null values should be filtered or not
-