Package com.mongodb

Class DocumentToDBRefTransformer

  • All Implemented Interfaces:
    Transformer

    public final class DocumentToDBRefTransformer
    extends Object
    implements Transformer
    A Document to DBRef Transformer. Can be used with any Codec that takes a Transformer.
    Since:
    3.5
    • Constructor Detail

      • DocumentToDBRefTransformer

        public DocumentToDBRefTransformer()
    • Method Detail

      • transform

        public Object transform​(Object value)
        Description copied from interface: Transformer
        Turns the 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.
        Specified by:
        transform in interface Transformer
        Parameters:
        value - the object that needs to be transformed.
        Returns:
        the new transformed object.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object