public class MassUnit extends LinearUnit<MassUnit>
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-01-18 00:35:01 +0100 (Fri, 18 Jan 2019) $, @version $Revision: 324 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static MassUnit |
DALTON
dalton.
|
static MassUnit |
ELECTRONVOLT
electronvolt = 1.782661907E-36 kg.
|
static MassUnit |
EXAELECTRONVOLT
exaelectronvolt.
|
static MassUnit |
FEMTOGRAM
femtogram.
|
static MassUnit |
GIGAELECTRONVOLT
gigaelectronvolt.
|
static MassUnit |
GIGAGRAM
gigagram.
|
static MassUnit |
GRAM
gram.
|
static MassUnit |
KILOELECTRONVOLT
kiloelectronvolt.
|
static MassUnit |
KILOGRAM
kilogram.
|
static MassUnit |
MEGAELECTRONVOLT
megaelectronvolt.
|
static MassUnit |
MEGAGRAM
megagram.
|
static MassUnit |
MICROELECTRONVOLT
microelectronvolt.
|
static MassUnit |
MICROGRAM
microgram.
|
static MassUnit |
MILLIELECTRONVOLT
millielectronvolt.
|
static MassUnit |
MILLIGRAM
milligram.
|
static MassUnit |
NANOGRAM
nanogram.
|
static MassUnit |
OUNCE
pound.
|
static MassUnit |
PETAELECTRONVOLT
petaelectronvolt.
|
static MassUnit |
PETAGRAM
petagram.
|
static MassUnit |
PICOGRAM
picogram.
|
static MassUnit |
POUND
pound.
|
static MassUnit |
SI
The SI unit for mass is kilogram.
|
static MassUnit |
TERAELECTRONVOLT
teraelectronvolt.
|
static MassUnit |
TERAGRAM
teragram.
|
static MassUnit |
TON_LONG
long ton = 2240 lb.
|
static MassUnit |
TON_METRIC
metric ton = 1000 kg.
|
static MassUnit |
TON_SHORT
short ton = 2000 lb.
|
static MassUnit |
TONNE
metric ton = 1000 kg.
|
STANDARD_UNITS
Constructor and Description |
---|
MassUnit(String name,
String abbreviation,
UnitSystem unitSystem,
MassUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined MassUnit with a conversion factor to another MassUnit.
|
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
MassUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final MassUnit SI
public static final MassUnit KILOGRAM
public static final MassUnit FEMTOGRAM
public static final MassUnit PICOGRAM
public static final MassUnit NANOGRAM
public static final MassUnit MICROGRAM
public static final MassUnit MILLIGRAM
public static final MassUnit GRAM
public static final MassUnit MEGAGRAM
public static final MassUnit GIGAGRAM
public static final MassUnit TERAGRAM
public static final MassUnit PETAGRAM
public static final MassUnit POUND
public static final MassUnit OUNCE
public static final MassUnit TON_LONG
public static final MassUnit TON_SHORT
public static final MassUnit TON_METRIC
public static final MassUnit TONNE
public static final MassUnit DALTON
public static final MassUnit MICROELECTRONVOLT
public static final MassUnit MILLIELECTRONVOLT
public static final MassUnit ELECTRONVOLT
public static final MassUnit KILOELECTRONVOLT
public static final MassUnit MEGAELECTRONVOLT
public static final MassUnit GIGAELECTRONVOLT
public static final MassUnit TERAELECTRONVOLT
public static final MassUnit PETAELECTRONVOLT
public static final MassUnit EXAELECTRONVOLT
public MassUnit(String name, String abbreviation, UnitSystem unitSystem, MassUnit 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
- MassUnit; the unit to convert toscaleFactorToReferenceUnit
- double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final MassUnit getStandardUnit()
getStandardUnit
in class Unit<MassUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<MassUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.