Companion

object Companion

Functions

Link copied to clipboard
fun liters(value: Double): Volume
fun liters(value: Int): Volume
fun liters(value: Long): Volume

Creates a Volume instance from the given value in liters.

Link copied to clipboard
fun milliliters(value: Int): Volume
fun milliliters(value: Long): Volume

Creates a Volume instance from the given value in milliliters.

Link copied to clipboard
fun usGallons(value: Double): Volume
fun usGallons(value: Int): Volume
fun usGallons(value: Long): Volume

Creates a Volume instance from the given value in US gallons.

Properties

Link copied to clipboard

The Volume of 0.