Package org.bson
Class BsonBoolean
java.lang.Object
org.bson.BsonValue
org.bson.BsonBoolean
- All Implemented Interfaces:
Comparable<BsonBoolean>
@Deprecated(since="2022-10-31")
public final class BsonBoolean
extends BsonValue
implements Comparable<BsonBoolean>
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of the BSON Boolean type.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BsonBooleanDeprecated.static final BsonBooleanDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionBsonBoolean(boolean value) Deprecated.Construct a new instance with the given value. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.booleanDeprecated.Deprecated.Gets the BSON type of this value.booleangetValue()Deprecated.Gets the boolean value.inthashCode()Deprecated.toString()Deprecated.static BsonBooleanvalueOf(boolean value) Deprecated.Returns aBsonBooleaninstance representing the specifiedbooleanvalue.Methods inherited from class org.bson.BsonValue
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, isTimestamp
-
Field Details
-
TRUE
Deprecated. -
FALSE
Deprecated.
-
-
Constructor Details
-
BsonBoolean
public BsonBoolean(boolean value) Deprecated.Construct a new instance with the given value.- Parameters:
value- the value
-
-
Method Details
-
valueOf
Deprecated.Returns aBsonBooleaninstance representing the specifiedbooleanvalue. -
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<BsonBoolean>
-
getBsonType
Deprecated.Description copied from class:BsonValueGets the BSON type of this value.- Specified by:
getBsonTypein classBsonValue- Returns:
- the BSON type, which may not be null (but may be BSONType.NULL)
-
getValue
public boolean getValue()Deprecated.Gets the boolean value.- Returns:
- the value
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-