public class BsonDbPointer extends BsonValue
Constructor and Description |
---|
BsonDbPointer(java.lang.String namespace,
ObjectId id)
Construct a new instance with the given namespace and id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
ObjectId |
getId()
Gets the id.
|
java.lang.String |
getNamespace()
Gets the namespace.
|
int |
hashCode() |
java.lang.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 BsonDbPointer(java.lang.String namespace, ObjectId id)
namespace
- the namespaceid
- the idpublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public java.lang.String getNamespace()
public ObjectId getId()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved