Class MorphiaPropertySerialization

  • All Implemented Interfaces:
    org.bson.codecs.pojo.PropertySerialization

    public class MorphiaPropertySerialization
    extends Object
    implements org.bson.codecs.pojo.PropertySerialization
    Determines if a property should be serialized or not
    • Constructor Detail

      • MorphiaPropertySerialization

        public MorphiaPropertySerialization​(MapperOptions options,
                                            PropertyModelBuilder property)
        Parameters:
        options - the options to apply
        property - the property in question
    • Method Detail

      • shouldSerialize

        public boolean shouldSerialize​(@Nullable
                                       Object value)
        Specified by:
        shouldSerialize in interface org.bson.codecs.pojo.PropertySerialization