public class VolumeUnit extends LinearUnit<VolumeUnit>
Copyright (c) 2015-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2019-03-02 19:06:46 +0100 (Sat, 02 Mar 2019) $, @version $Revision: 342 $, by $Author: averbraeck $,
initial version May 15, 2014
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 scaleFactorToReferenceUnit)
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() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final VolumeUnit SI
public static final VolumeUnit CUBIC_ATTOMETER
public static final VolumeUnit CUBIC_FEMTOMETER
public static final VolumeUnit CUBIC_PICOMETER
public static final VolumeUnit CUBIC_NANOMETER
public static final VolumeUnit CUBIC_MICROMETER
public static final VolumeUnit CUBIC_MILLIMETER
public static final VolumeUnit CUBIC_CENTIMETER
public static final VolumeUnit CUBIC_DECIMETER
public static final VolumeUnit CUBIC_METER
public static final VolumeUnit CUBIC_DEKAMETER
public static final VolumeUnit CUBIC_HECTOMETER
public static final VolumeUnit CUBIC_KILOMETER
public static final VolumeUnit CUBIC_MEGAMETER
public static final VolumeUnit LITER
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 static final VolumeUnit CUBIC_LIGHTYEAR
public static final VolumeUnit CUBIC_PARSEC
public VolumeUnit(LengthUnit lengthUnit, String name, String abbreviation, UnitSystem unitSystem)
lengthUnit
- LengthUnit; the unit of length for the speed unit, e.g., metername
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or Imperialpublic VolumeUnit(String name, String abbreviation, UnitSystem unitSystem, VolumeUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitunitSystem
- UnitSystem; the unit system, e.g. SI or ImperialreferenceUnit
- VolumeUnit; the unit to convert toscaleFactorToReferenceUnit
- double; 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–2019 Delft University of Technology. All rights reserved.