Comparable<BsonBoolean>public final class BsonBoolean extends BsonValue implements Comparable<BsonBoolean>
| Modifier and Type | Field | Description |
|---|---|---|
static BsonBoolean |
FALSE |
|
static BsonBoolean |
TRUE |
| Constructor | Description |
|---|---|
BsonBoolean(boolean value) |
Construct a new instance with the given value.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(BsonBoolean o) |
|
boolean |
equals(Object o) |
|
BsonType |
getBsonType() |
Gets the BSON type of this value.
|
boolean |
getValue() |
Gets the boolean value.
|
int |
hashCode() |
|
String |
toString() |
|
static BsonBoolean |
valueOf(boolean value) |
Returns a
BsonBoolean instance representing the specified boolean value. |
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 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 in interface Comparable<BsonBoolean>public BsonType getBsonType()
BsonValuegetBsonType in class BsonValuepublic boolean getValue()