maxAt

fun maxAt(timestamp: Instant): ObjectId(source)

The maximum ObjectId created at timestamp.

It is guaranteed that:

  • All ObjectId instances created at timestamp are lesser or equal to the output of this function.

  • All ObjectId instances created before timestamp are strictly lesser than the output of this function.

  • All ObjectId instances created after timestamp are strictly greater than the output of this function.

This function is particularly helpful to create queries against ranges of timestamps.

See also