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 Details

    • TRUE

      public static final BsonBoolean TRUE
      Deprecated.
    • FALSE

      public static final BsonBoolean 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

      public static BsonBoolean valueOf(boolean value)
      Deprecated.
      Returns a BsonBoolean instance representing the specified boolean value.
      Parameters:
      value - a boolean value.
      Returns:
      TRUE if value is true, FALSE if value is false
    • compareTo

      public int compareTo(BsonBoolean o)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<BsonBoolean>
    • getBsonType

      public BsonType getBsonType()
      Deprecated.
      Description copied from class: BsonValue
      Gets the BSON type of this value.
      Specified by:
      getBsonType in class BsonValue
      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

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object