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

commonMain.components.DateTimeComponent.kt Maven / Gradle / Ivy

package io.fluidsonic.time


public interface DateTimeComponent, Measurement : TemporalMeasurement> : Comparable {

	public fun map(transform: (Long) -> Long): Component
	public operator fun minus(other: Measurement): Component
	public operator fun minus(other: Component): Measurement
	public operator fun plus(other: Measurement): Component
	public fun toInt(): Int
	public fun toLong(): Long

	public companion object;


	public interface CompanionInterface> {

		// removed due to boxing
//		val max: Component
//		val min: Component

		public fun isValid(value: Long): Boolean
		public fun of(value: Long): Component
		public fun ofOrNull(value: Long): Component?
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy