Mass

class Mass : Comparable<Mass>

Represents a unit of mass. Supported units:

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:JvmName(name = "getGrams")
val inGrams: Double

Returns the mass in grams.

Link copied to clipboard
@get:JvmName(name = "getKilograms")
val inKilograms: Double

Returns the mass in kilograms.

Link copied to clipboard
@get:JvmName(name = "getMicrograms")
val inMicrograms: Double

Returns the mass in micrograms.

Link copied to clipboard
@get:JvmName(name = "getMilligrams")
val inMilligrams: Double

Returns the mass in milligrams.

Link copied to clipboard
@get:JvmName(name = "getOunces")
val inOunces: Double

Returns the mass in ounces.

Link copied to clipboard
@get:JvmName(name = "getPounds")
val inPounds: Double

Returns the mass in pounds.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Mass): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String