Volume
class Volume : Comparable
Represents a unit of volume. Supported units:
-
liters - see
Volume.liters,Double.liters -
milliliters - see
Volume.milliliters,Double.milliliters -
US fluid ounces - see
Volume.fluidOuncesUs,Double.fluidOuncesUs
Summary
Public companion functions |
|
|---|---|
Volume |
fluidOuncesUs(value: Double)Creates |
Volume |
Creates |
Volume |
milliliters(value: Double)Creates |
Public properties |
|
|---|---|
Double |
Returns the volume in US fluid ounces. |
Double |
Returns the volume in liters. |
Double |
Returns the volume in milliliters. |
Public companion functions
fluidOuncesUs
fun fluidOuncesUs(value: Double): Volume
Creates Volume with the specified value in US fluid ounces.
liters
fun liters(value: Double): Volume
Creates Volume with the specified value in liters.
milliliters
fun milliliters(value: Double): Volume
Creates Volume with the specified value in milliliters.