public class BsonString extends BsonValue implements Comparable<BsonString>
| Constructor and Description | 
|---|
| BsonString(String value)Construct a new instance with the given value. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(BsonString o) | 
| boolean | equals(Object o) | 
| BsonType | getBsonType()Gets the BSON type of this value. | 
| String | getValue()Gets the String 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 BsonString(String value)
value - the non-null valuepublic int compareTo(BsonString o)
compareTo in interface Comparable<BsonString>public BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic String getValue()