public class BsonSymbol extends BsonValue
| 构造器和说明 |
|---|
BsonSymbol(java.lang.String value)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, 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 BsonSymbol(java.lang.String value)
value - the symbol valuepublic BsonType getBsonType()
BsonValuegetBsonType 在类中 BsonValuepublic java.lang.String getSymbol()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objecto - the Symbol to compare this topublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object