Compares the equality of this ObjectId with [otherID].
ObjectId instance to compare against.
The result of comparing two ObjectId"s
Generate a 12 byte id string used in ObjectId"s
The 12 byte id binary string.
Update the ObjectId index used in generating new ObjectId"s on the driver
Next index value.
Returns the generation time in seconds that this ID was generated.
Number of seconds in the timestamp part of the 12 byte id.
Return the ObjectId id as a 24 byte hex string representation
The 24 byte hex string representation.
Alias for {@link ObjectId#toHexString}
Alias for {@link ObjectId#toHexString}
Creates an ObjectId from a hex string representation of an ObjectId.
An ObjectId 24 byte hexstring representation.
The created ObjectId
Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId.
A number of seconds.
The created ObjectId
Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId.
return the created ObjectId
Generated using TypeDoc
ObjectId
ObjectId
0.0.1
Eduardo Astolfi eastolfi91@gmail.com
2016 Eduardo Astolfi eastolfi91@gmail.com
MIT Licensed
Represents the BSON ObjectId type
Can be a 24 byte hex string, a 12 byte binary string or a Number.