public class BsonSymbol extends BsonValue
Constructor and Description |
---|
BsonSymbol(java.lang.String value)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Will compare equal to a String that is equal to the String that this holds
|
BsonType |
getBsonType()
Gets the BSON type of this value.
|
java.lang.String |
getSymbol()
Gets the symbol value
|
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 BsonSymbol(java.lang.String value)
value
- the symbol valuepublic BsonType getBsonType()
BsonValue
getBsonType
in class BsonValue
public java.lang.String getSymbol()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the Symbol to compare this topublic 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