public class BsonString extends BsonValue implements java.lang.Comparable<BsonString>
| Constructor and Description |
|---|
BsonString(java.lang.String value)
Construct a new instance with the given value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BsonString o) |
boolean |
equals(java.lang.Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
java.lang.String |
getValue()
Gets the String 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, isTimestamppublic BsonString(java.lang.String value)
value - the non-null valuepublic int compareTo(BsonString o)
compareTo in interface java.lang.Comparable<BsonString>public BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved