Package com.mongodb
Class DocumentToDBRefTransformer
- java.lang.Object
-
- com.mongodb.DocumentToDBRefTransformer
-
- All Implemented Interfaces:
Transformer
public final class DocumentToDBRefTransformer extends Object implements Transformer
A Document to DBRef Transformer. Can be used with anyCodec
that takes aTransformer
.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description DocumentToDBRefTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
Object
transform(Object value)
Turns theobjectToTransform
into some otherObject
.
-
-
-
Method Detail
-
transform
public Object transform(Object value)
Description copied from interface:Transformer
Turns theobjectToTransform
into some otherObject
. 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.- Specified by:
transform
in interfaceTransformer
- Parameters:
value
- the object that needs to be transformed.- Returns:
- the new transformed object.
-
-