Package org.bson

Class BsonObjectId

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

public class BsonObjectId extends BsonValue implements Comparable<BsonObjectId>
A representation of the BSON ObjectId type.
Since:
3.0
  • Constructor Details

    • BsonObjectId

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

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