Mass

@Serializable
class Mass : Comparable<Mass>

Represents a unit of mass. Supported units:

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns the mass in grams.

Link copied to clipboard

Returns the mass in kilograms.

Link copied to clipboard

Returns the mass in micrograms.

Link copied to clipboard

Returns the mass in milligrams.

Link copied to clipboard

Returns the mass in ounces.

Link copied to clipboard

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