T
- the type of the field that the FieldModel represents.public final class FieldModel<T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Codec<T> |
getCodec() |
String |
getDocumentFieldName() |
FieldAccessor<T> |
getFieldAccessor() |
String |
getFieldName() |
org.bson.codecs.pojo.TypeData<T> |
getTypeData() |
int |
hashCode() |
boolean |
shouldSerialize(T value)
Returns true if the value should be serialized.
|
String |
toString() |
Boolean |
useDiscriminator() |
public boolean shouldSerialize(T value)
value
- the value to checkpublic FieldAccessor<T> getFieldAccessor()
public String getFieldName()
public String getDocumentFieldName()
public org.bson.codecs.pojo.TypeData<T> getTypeData()
public Boolean useDiscriminator()