commonMain.measurement.TemporalMeasurement.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluid-time-jdk8 Show documentation
Show all versions of fluid-time-jdk8 Show documentation
Multiplatform date & time library
package io.fluidsonic.time
interface TemporalMeasurement> : Comparable {
val absolute: Measurement
val isNegative: Boolean
val isPositive: Boolean
val isZero: Boolean
operator fun div(other: Int): Measurement
operator fun div(other: Long): Measurement
operator fun div(other: Measurement): Long
operator fun minus(other: Measurement): Measurement
operator fun plus(other: Measurement): Measurement
operator fun rem(other: Int): Measurement
operator fun rem(other: Long): Measurement
operator fun rem(other: Measurement): Measurement
operator fun times(other: Int): Measurement
operator fun times(other: Long): Measurement
operator fun unaryMinus(): Measurement
companion object
interface CompanionInterface> {
// removed due to boxing
// val max: Measurement
// val min: Measurement
// val zero: Measurement
}
interface LongBased> : TemporalMeasurement {
fun map(transform: (Long) -> Long): Measurement
fun toInt(): Int
fun toLong(): Long
}
}