public final class BsonBoolean extends BsonValue implements java.lang.Comparable<BsonBoolean>
| 限定符和类型 | 字段和说明 |
|---|---|
static BsonBoolean |
FALSE |
static BsonBoolean |
TRUE |
| 构造器和说明 |
|---|
BsonBoolean(boolean value)
Construct a new instance with the given value.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(BsonBoolean o) |
boolean |
equals(java.lang.Object o) |
BsonType |
getBsonType()
Gets the BSON type of this value.
|
boolean |
getValue()
Gets the boolean value.
|
int |
hashCode() |
java.lang.String |
toString() |
static BsonBoolean |
valueOf(boolean value)
Returns a
BsonBoolean instance representing the specified boolean value. |
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 static final BsonBoolean TRUE
public static final BsonBoolean FALSE
public BsonBoolean(boolean value)
value - the valuepublic static BsonBoolean valueOf(boolean value)
BsonBoolean instance representing the specified boolean value.public int compareTo(BsonBoolean o)
compareTo 在接口中 java.lang.Comparable<BsonBoolean>public BsonType getBsonType()
BsonValuegetBsonType 在类中 BsonValuepublic boolean getValue()
public boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Object