Package io.objectbox.converter
package io.objectbox.converter
For use with
@Convert
: PropertyConverter
to convert custom Property types.
For more details look at the documentation of individual classes and docs.objectbox.io/advanced/custom-types.
-
ClassDescriptionConverts between
Object
properties and byte arrays using FlexBuffers.AFlexObjectConverter
that usesInteger
as map keys.LikeIntegerFlexMapConverter
, but always restores integer map values asLong
.AFlexObjectConverter
that usesLong
as map keys.LikeLongFlexMapConverter
, but always restores integer map values asLong
.Used as a converter if a property is annotated with@DefaultValue("")
.PropertyConverter<P,D> To use custom types in your entity, implement this to convert db values to entity values and back.LikeStringFlexMapConverter
, but always restores integer map values asLong
.Converts a String map entity property to a byte array database value using FlexBuffers.