Companion

object Companion

Functions

Link copied to clipboard

Generates a new ObjectId using default values (current time)

Link copied to clipboard

Generates a new ObjectId using the provided timestamp.

fun from(bytes: ByteArray): ObjectId

Generates a new ObjectId using the unique 12 bytes representation.

fun from(hexString: String): ObjectId

Generates a new ObjectId using the hexadecimal representation of the 12 bytes.