Package org.bson.codecs.pojo
Interface PropertySerialization<T>
- Type Parameters:
T
- the type of the property.
public interface PropertySerialization<T>
An interface allowing a
PropertyModel
to determine if a value should be serialized.- Since:
- 3.5
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
inline()
boolean
shouldSerialize
(T value) Determines if a value should be serialized
-
Method Details
-
shouldSerialize
Determines if a value should be serialized- Parameters:
value
- the value to check- Returns:
- true if the value should be serialized
-
inline
default boolean inline()- Returns:
- true if serialized inline
- Since:
- 4.6
-