Bson Object Id
A representation of the BSON ObjectId type
A globally unique identifier for objects.
Consists of 12 bytes, divided as follows:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | ```
| time | random value | inc | |||||||||
Constructors
constructs a new instance with the given timestamp, random values and counter
Types
Functions
Gets this value as a BsonBinary if it is one, otherwise throws exception
Gets this value as a BsonBoolean if it is one, otherwise throws exception
Gets this value as a BsonMaxKey if it is one, otherwise throws exception
Gets this value as a BsonMinKey if it is one, otherwise throws exception
Gets this value as a BsonNull if it is one, otherwise throws exception
Gets this value as a BsonUndefined if it is one, otherwise throws exception
Gets this value as a BsonDateTime if it is one, otherwise throws exception
Gets this value as a BsonDBPointer if it is one, otherwise throws exception
Gets this value as a BsonDecimal128 if it is one, otherwise throws exception
Gets this value as a BsonDocument if it is one, otherwise throws exception
Gets this value as a BsonDouble if it is one, otherwise throws exception
Gets this value as a BsonJavaScript if it is one, otherwise throws exception
Gets this value as a BsonJavaScriptWithScope if it is one, otherwise throws exception
Gets this value as a BsonNumber if it is one, otherwise throws exception
Gets this value as an BsonObjectId if it is one, otherwise throws exception
Gets this value as a BsonRegularExpression if it is one, otherwise throws exception
Gets this value as a BsonString if it is one, otherwise throws exception
Gets this value as a BsonSymbol if it is one, otherwise throws exception
Gets this value as a BsonTimestamp if it is one, otherwise throws exception
Convert to a byte array. Note that the numbers are stored in big-endian order.
Converts this instance into a 24-byte hexadecimal string representation.