Transformer
public final class DocumentToDBRefTransformer extends Object implements Transformer
Codec
that takes a Transformer
.Constructor | Description |
---|---|
DocumentToDBRefTransformer() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
hashCode() |
|
Object |
transform(Object value) |
Turns the
objectToTransform into some other Object . |
public Object transform(Object value)
Transformer
objectToTransform
into some other Object
. This can either be turning a simple BSON-friendly object into a
different Java type, or it can be turning a Java type that can't automatically be converted into BSON into something that can.transform
in interface Transformer
value
- the object that needs to be transformed.