Creates an ObjectID from a hex string representation of an ObjectID.
Creates an ObjectID from a hex string representation of an ObjectID.
the given 24-byte hex string.
the created ObjectID
Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out.
Creates an ObjectID from a second based number, with the rest of the ObjectID zeroed out. Used for comparisons or sorting the ObjectID.
an integer number representing a number of seconds.
the created ObjectID
Compares the equality of this ObjectID with otherID
.
Compares the equality of this ObjectID with otherID
.
the ObjectID instance to compare against.
the result of comparing two ObjectID’s
Returns the generation date (accurate up to the second) that this ID was generated.
Returns the generation date (accurate up to the second) that this ID was generated.
the generation date
Checks if a value is a valid BSON ObjectId
Checks if a value is a valid BSON ObjectId
true if the value is a valid BSON ObjectId; returns false otherwise.
Returns the ObjectID id as a 24 byte hex string representation
Returns the ObjectID id as a 24 byte hex string representation
a 24 byte hex string representation
MongoDB ObjectID