Hardcoded

Hardcoded ObjectId generator with a deterministic input sequence.

Mostly useful as a fake when testing algorithms that must generate IDs.

Constructors

Link copied to clipboard
constructor(ids: Iterable<ObjectId>)
constructor(vararg ids: ObjectId)
constructor(ids: Iterator<ObjectId>)

Functions

Link copied to clipboard
open override fun newId(): ObjectId

Creates a new instance of an ObjectId.