public class BsonObjectId extends BsonValue implements Comparable<BsonObjectId>, Serializable
| Constructor and Description |
|---|
BsonObjectId(ObjectId value)
Construct a new instance with the given
ObjectId instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BsonObjectId o) |
boolean |
equals(Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
ObjectId |
getValue()
Get the
ObjectId value. |
int |
hashCode() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamppublic BsonObjectId(ObjectId value)
ObjectId instance.value - the ObjectIdpublic ObjectId getValue()
ObjectId value.ObjectId valuepublic BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic int compareTo(BsonObjectId o)
compareTo in interface Comparable<BsonObjectId>