public class BsonSymbol extends BsonValue
| Constructor | Description |
|---|---|
BsonSymbol(String value) |
Creates a new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(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.
|
String |
getSymbol() |
Gets the symbol 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, isTimestamppublic BsonSymbol(String value)
value - the symbol valuepublic BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic String getSymbol()
public boolean equals(Object o)