Package com.mongodb

Class DBObjectCodecProvider

java.lang.Object
com.mongodb.DBObjectCodecProvider
All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider

public class DBObjectCodecProvider extends Object implements org.bson.codecs.configuration.CodecProvider
A provider for a DBObjectCodec.
Since:
3.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an instance using the default BsonTypeClassMap.
    DBObjectCodecProvider(org.bson.codecs.BsonTypeClassMap bsonTypeClassMap)
    Construct an instance with the given BsonTypeClassMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    <T> org.bson.codecs.Codec<T>
    get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bson.codecs.configuration.CodecProvider

    get
  • Constructor Details

    • DBObjectCodecProvider

      public DBObjectCodecProvider()
      Construct an instance using the default BsonTypeClassMap.
      See Also:
      • DBObjectCodec.getDefaultBsonTypeClassMap()
    • DBObjectCodecProvider

      public DBObjectCodecProvider(org.bson.codecs.BsonTypeClassMap bsonTypeClassMap)
      Construct an instance with the given BsonTypeClassMap.
      Parameters:
      bsonTypeClassMap - the BsonTypeClassMap
  • Method Details

    • get

      public <T> org.bson.codecs.Codec<T> get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
      Specified by:
      get in interface org.bson.codecs.configuration.CodecProvider
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object