Comparable<BsonObjectId>
public class BsonObjectId extends BsonValue implements Comparable<BsonObjectId>
Constructor | Description |
---|---|
BsonObjectId() |
Construct a new instance with a new
ObjectId . |
BsonObjectId(ObjectId value) |
Construct a new instance with the given
ObjectId instance. |
Modifier and Type | Method | 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() |
|
String |
toString() |
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestamp
public BsonObjectId()
ObjectId
.public BsonObjectId(ObjectId value)
ObjectId
instance.value
- the ObjectIdpublic ObjectId getValue()
ObjectId
value.ObjectId
valuepublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public int compareTo(BsonObjectId o)
compareTo
in interface Comparable<BsonObjectId>