invoke

operator fun invoke(): BsonObjectId

Create a new BsonObjectId


operator fun invoke(timestamp: Long): BsonObjectId

Create a new BsonObjectId

Parameters

timestamp

the timestamp in millis


operator fun invoke(hexString: String): BsonObjectId

Create a new BsonObjectId from a hexString

See also


operator fun invoke(byteArray: ByteArray): BsonObjectId

Construct a new BsonObjectId from a ByteArray