Package org.bson

Class BsonObjectId

java.lang.Object
org.bson.BsonValue
org.bson.BsonObjectId
All Implemented Interfaces:
Comparable<BsonObjectId>

@Deprecated(since="2022-10-31") public class BsonObjectId extends BsonValue implements Comparable<BsonObjectId>
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A representation of the BSON ObjectId type.
Since:
3.0
  • Constructor Details

    • BsonObjectId

      public BsonObjectId()
      Deprecated.
      Construct a new instance with a new ObjectId.
    • BsonObjectId

      public BsonObjectId(ObjectId value)
      Deprecated.
      Construct a new instance with the given ObjectId instance.
      Parameters:
      value - the ObjectId
  • Method Details

    • getValue

      public ObjectId getValue()
      Deprecated.
      Get the ObjectId value.
      Returns:
      the ObjectId value
    • 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)
    • compareTo

      public int compareTo(BsonObjectId o)
      Deprecated.
      Specified by:
      compareTo in interface Comparable<BsonObjectId>
    • 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