Package dev.morphia.mapping.codec
Class BsonTypeMap
- java.lang.Object
-
- dev.morphia.mapping.codec.BsonTypeMap
-
public class BsonTypeMap extends Object
Maps Java type to BSON types
-
-
Constructor Summary
Constructors Constructor Description BsonTypeMap()
Creates the map
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.bson.BsonType
get(Class<?> type)
Gets the Class that is mapped to the given BSON type.int
hashCode()
-
-
-
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
-
-