All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.measurement.TemporalMeasurement.kt Maven / Gradle / Ivy

There is a newer version: 0.9.20
Show newest version
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
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy