Skip to content

Kotlin BSON • Multiplatform abstraction for different BSON implementationsopensavvy.ktmongo.bson.typesObjectIdCompanion

Companion

object Companion

Properties

COUNTER_BOUND

const val COUNTER_BOUND: Int

The smallest integer that is not allowed in ObjectId.counter.

MAX

val MAX: ObjectId

The maximum possible ObjectId: the one that is greater or equal to all possible ObjectId instances.

MIN

val MIN: ObjectId

The minimum possible ObjectId: the one that is lesser or equal to all possible ObjectId instances.

PROCESS_ID_BOUND

const val PROCESS_ID_BOUND: Long

The smallest integer that is not allowed in ObjectId.processId.

Functions

maxAt

fun maxAt(timestamp: Instant): ObjectId

The maximum ObjectId created at timestamp.

minAt

fun minAt(timestamp: Instant): ObjectId

The minimum ObjectId created at timestamp.