data class TimeInterval


TimeInterval class defines a period from start to end

Summary

Public constructors

TimeInterval(start: Instant, end: Instant)

Public properties

Instant

The end time of the time interval

Instant

The start time of the time interval

Public constructors

TimeInterval

Added in 1.0.0-alpha06
TimeInterval(
    start: Instant = Instant.ofEpochMilli(0),
    end: Instant = Instant.ofEpochMilli(Long.MAX_VALUE)
)
Parameters
start: Instant = Instant.ofEpochMilli(0)

The start time of the time interval

end: Instant = Instant.ofEpochMilli(Long.MAX_VALUE)

The end time of the time interval

Public properties

end

Added in 1.0.0-alpha06
val endInstant

The end time of the time interval

start

Added in 1.0.0-alpha06
val startInstant

The start time of the time interval