Celsius

value class Celsius(val value: Int) : Comparable<Celsius>

摂氏温度を表す値。単位の取り違え(℃/℉、他の閾値との誤代入等)をコンパイル時に防ぐために使う。

Constructors

Link copied to clipboard
constructor(value: Int)

Properties

Link copied to clipboard
val value: Int

Functions

Link copied to clipboard
open operator override fun compareTo(other: Celsius): Int
Link copied to clipboard
operator fun minus(other: Celsius): Celsius