Class BsonTypeMap


  • public class BsonTypeMap
    extends Object
    Maps Java type to BSON types
    • Constructor Detail

      • BsonTypeMap

        public BsonTypeMap()
        Creates the map
    • Method Detail

      • get

        @Nullable
        public org.bson.BsonType get​(Class<?> type)
        Gets the Class that is mapped to the given BSON type.
        Parameters:
        type - the BSON type
        Returns:
        the Class that is mapped to the BSON type
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object