public class VolumeUnit extends LinearUnit<VolumeUnit>
Copyright (c) 2015-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2016-05-28 14:25:52 +0200 (Sat, 28 May 2016) $, @version $Revision: 202 $, by $Author: averbraeck $,
initial version May 15, 2014
| Modifier and Type | Field and Description |
|---|---|
static VolumeUnit |
CUBIC_CENTIMETER
cm^3.
|
static VolumeUnit |
CUBIC_DECIMETER
dm^3.
|
static VolumeUnit |
CUBIC_FOOT
ft^3.
|
static VolumeUnit |
CUBIC_INCH
in^3.
|
static VolumeUnit |
CUBIC_KM
km^3.
|
static VolumeUnit |
CUBIC_METER
m^3.
|
static VolumeUnit |
CUBIC_MILE
mile^3.
|
static VolumeUnit |
CUBIC_YARD
yd^3.
|
static VolumeUnit |
GALLON_IMP
gallon (imperial).
|
static VolumeUnit |
GALLON_US_FLUID
gallon (US), fluids.
|
static VolumeUnit |
LITER
liter.
|
static VolumeUnit |
OUNCE_IMP_FLUID
ounce (fluid imperial).
|
static VolumeUnit |
OUNCE_US_FLUID
ounce (fluid US).
|
static VolumeUnit |
PINT_IMP
pint (imperial).
|
static VolumeUnit |
PINT_US_FLUID
pint (fluid US).
|
static VolumeUnit |
QUART_IMP
quart (imperial).
|
static VolumeUnit |
QUART_US_FLUID
quart (fluid US).
|
static VolumeUnit |
SI
The SI unit for volume is m^3.
|
scale, STANDARD_UNITS| Constructor and Description |
|---|
VolumeUnit(LengthUnit lengthUnit,
String name,
String abbreviation,
UnitSystem unitSystem)
Define a user-defined volume unit based on length, e.g.
|
VolumeUnit(String name,
String abbreviation,
UnitSystem unitSystem,
VolumeUnit referenceUnit,
double conversionFactorToReferenceUnit)
Build a user-defined VolumeUnit with a conversion factor to another VolumeUnit, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
LengthUnit |
getLengthUnit() |
String |
getSICoefficientsString() |
VolumeUnit |
getStandardUnit() |
getConversionFactorToStandardUnit, getScaleequals, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, hashCode, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final VolumeUnit SI
public static final VolumeUnit CUBIC_METER
public static final VolumeUnit CUBIC_DECIMETER
public static final VolumeUnit LITER
public static final VolumeUnit CUBIC_CENTIMETER
public static final VolumeUnit CUBIC_KM
public static final VolumeUnit CUBIC_MILE
public static final VolumeUnit CUBIC_FOOT
public static final VolumeUnit CUBIC_INCH
public static final VolumeUnit CUBIC_YARD
public static final VolumeUnit GALLON_US_FLUID
public static final VolumeUnit GALLON_IMP
public static final VolumeUnit OUNCE_US_FLUID
public static final VolumeUnit OUNCE_IMP_FLUID
public static final VolumeUnit PINT_US_FLUID
public static final VolumeUnit PINT_IMP
public static final VolumeUnit QUART_US_FLUID
public static final VolumeUnit QUART_IMP
public VolumeUnit(LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit - the unit of length for the speed unit, e.g., metername - the long name of the unitabbreviation - the abbreviation of the unitunitSystem - the unit system, e.g. SI or Imperialpublic VolumeUnit(String name, String abbreviation, UnitSystem unitSystem, VolumeUnit referenceUnit, double conversionFactorToReferenceUnit)
name - the long name of the unitabbreviation - the abbreviation of the unitunitSystem - the unit system, e.g. SI or ImperialreferenceUnit - the unit to convert toconversionFactorToReferenceUnit - multiply a value in this unit by the factor to convert to the given reference unitpublic final LengthUnit getLengthUnit()
public final VolumeUnit getStandardUnit()
getStandardUnit in class Unit<VolumeUnit>public final String getSICoefficientsString()
getSICoefficientsString in class Unit<VolumeUnit>Copyright © 2015–2016 Delft University of Technology. All rights reserved.