Package io.objectbox.converter
Class StringMapConverter
- java.lang.Object
-
- io.objectbox.converter.StringMapConverter
-
- All Implemented Interfaces:
PropertyConverter<java.util.Map<java.lang.String,java.lang.String>,byte[]>
public class StringMapConverter extends java.lang.Object implements PropertyConverter<java.util.Map<java.lang.String,java.lang.String>,byte[]>
Converts a String map entity property to a byte array database value using FlexBuffers.
-
-
Constructor Summary
Constructors Constructor Description StringMapConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
convertToDatabaseValue(java.util.Map<java.lang.String,java.lang.String> map)
java.util.Map<java.lang.String,java.lang.String>
convertToEntityProperty(byte[] databaseValue)
-
-
-
Method Detail
-
convertToDatabaseValue
public byte[] convertToDatabaseValue(java.util.Map<java.lang.String,java.lang.String> map)
- Specified by:
convertToDatabaseValue
in interfacePropertyConverter<java.util.Map<java.lang.String,java.lang.String>,byte[]>
-
convertToEntityProperty
public java.util.Map<java.lang.String,java.lang.String> convertToEntityProperty(byte[] databaseValue)
- Specified by:
convertToEntityProperty
in interfacePropertyConverter<java.util.Map<java.lang.String,java.lang.String>,byte[]>
-
-