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

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

The newest version!
package com.github.fluidsonic.fluid.time


interface TemporalMeasurement> : Comparable {

	val absolute: Measurement
	val isNegative: 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> {

		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