Package io.objectbox.converter
Class LongFlexMapConverter
- java.lang.Object
-
- io.objectbox.converter.FlexObjectConverter
-
- io.objectbox.converter.LongFlexMapConverter
-
- All Implemented Interfaces:
PropertyConverter<java.lang.Object,byte[]>
- Direct Known Subclasses:
LongLongMapConverter
public class LongFlexMapConverter extends FlexObjectConverter
-
-
Constructor Summary
Constructors Constructor Description LongFlexMapConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckMapKeyType(java.lang.Object rawKey)Checks Java map key is of the expected type, otherwise throws.(package private) java.lang.ObjectconvertToKey(java.lang.String keyValue)Converts a FlexBuffers string map key to the Java map key (e.g.-
Methods inherited from class io.objectbox.converter.FlexObjectConverter
convertToDatabaseValue, convertToEntityProperty, shouldRestoreAsLong
-
-
-
-
Method Detail
-
checkMapKeyType
protected void checkMapKeyType(java.lang.Object rawKey)
Description copied from class:FlexObjectConverterChecks Java map key is of the expected type, otherwise throws.- Overrides:
checkMapKeyTypein classFlexObjectConverter
-
convertToKey
java.lang.Object convertToKey(java.lang.String keyValue)
Description copied from class:FlexObjectConverterConverts a FlexBuffers string map key to the Java map key (e.g. String to Integer).This required conversion restricts all keys (root and embedded maps) to the same type.
- Overrides:
convertToKeyin classFlexObjectConverter
-
-