Package com.mongodb

Class DocumentToDBRefTransformer

  • All Implemented Interfaces:
    Transformer

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean  o)  
      int hashCode()  
       value)
      Turns the objectToTransform into some other Object.
      • Methods inherited from class java.lang.

        , , , , , , , ,
    • Constructor Detail

      • DocumentToDBRefTransformer

        public DocumentToDBRefTransformer()
    • Method Detail

      • transform

        public  transform​( 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.
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class