Instant

object Instant

Instant generator configuration.

Properties

Link copied to clipboard

Candidate epoch seconds excluded after minEpochSeconds and maxEpochSeconds are composed.

Link copied to clipboard

Candidate nanoseconds excluded after minNanosecond and maxNanosecond are composed.

Link copied to clipboard

Maximum candidate epoch seconds for generated instants. The composed epoch-second range is checked when candidates are sampled.

Link copied to clipboard

Maximum candidate nanosecond adjustment for generated instants. The composed nanosecond range is checked when candidates are sampled.

Link copied to clipboard

Minimum candidate epoch seconds for generated instants. The composed epoch-second range is checked when candidates are sampled.

Link copied to clipboard

Minimum candidate nanosecond adjustment for generated instants. The composed nanosecond range is checked when candidates are sampled.

Functions

Link copied to clipboard
context(context: FakeContext)
fun epochSeconds(): Long

Samples epoch seconds from the composed candidates after applying min, max, and exclusion settings.

Creates settings that fix generated epoch seconds to value and clear configured exclusions.

Creates settings that replace generated epoch-second endpoints with value and clear configured exclusions.

Link copied to clipboard
context(context: FakeContext)
fun nanosecond(): Int

Samples a nanosecond from the composed candidates after applying min, max, and exclusion settings.

Creates settings that fix generated nanoseconds to value and clear configured exclusions.

Creates settings that replace generated nanosecond endpoints with value and clear configured exclusions.