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 Details

    • extractValues

      Extract the current instance values into a Map
      Parameters:
      field - field reference from which the values should be extracted
      Returns:
      a Map containing 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 added
      values - Map containing all the values that should be added to the current instance
      nullValues - specify if the null values should be filtered or not