Stay organized with collections Save and categorize content based on your preferences.

Volume.Companion

public static class Volume.Companion


Summary

Public methods

static final @NonNull Volume
fluidOuncesUs(double value)

Creates Volume with the specified value in US fluid ounces.

static final @NonNull Volume
liters(double value)

Creates Volume with the specified value in liters.

static final @NonNull Volume
milliliters(double value)

Creates Volume with the specified value in milliliters.

Public methods

fluidOuncesUs

public static final @NonNull Volume fluidOuncesUs(double value)

Creates Volume with the specified value in US fluid ounces.

liters

public static final @NonNull Volume liters(double value)

Creates Volume with the specified value in liters.

milliliters

public static final @NonNull Volume milliliters(double value)

Creates Volume with the specified value in milliliters.