Class StringMapConverter

java.lang.Object
io.objectbox.converter.StringMapConverter
All Implemented Interfaces:
io.objectbox.converter.PropertyConverter<Map<String,String>,byte[]>

public class StringMapConverter extends Object implements io.objectbox.converter.PropertyConverter<Map<String,String>,byte[]>
Converts a String map entity property to a byte array database value using FlexBuffers.
  • Constructor Details

    • StringMapConverter

      public StringMapConverter()
  • Method Details

    • convertToDatabaseValue

      public byte[] convertToDatabaseValue(Map<String,String> map)
      Specified by:
      convertToDatabaseValue in interface io.objectbox.converter.PropertyConverter<Map<String,String>,byte[]>
    • convertToEntityProperty

      public Map<String,String> convertToEntityProperty(byte[] databaseValue)
      Specified by:
      convertToEntityProperty in interface io.objectbox.converter.PropertyConverter<Map<String,String>,byte[]>