public class DurationUnit extends LinearUnit<DurationUnit>
Copyright (c) 2015-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2017-04-15 02:11:44 +0200 (Sat, 15 Apr 2017) $, @version $Revision: 239 $, by $Author: averbraeck $,
initial version May 15, 2014
Modifier and Type | Field and Description |
---|---|
static DurationUnit |
ATTOSECOND
attosecond.
|
static DurationUnit |
DAY
day.
|
static DurationUnit |
FEMTOSECOND
femtosecond.
|
static DurationUnit |
HOUR
hour.
|
static DurationUnit |
MICROSECOND
microsecond.
|
static DurationUnit |
MILLISECOND
millisecond.
|
static DurationUnit |
MINUTE
minute.
|
static DurationUnit |
NANOSECOND
nanosecond.
|
static DurationUnit |
PICOSECOND
picosecond.
|
static DurationUnit |
SECOND
second.
|
static DurationUnit |
SI
The SI unit for duration is second.
|
static DurationUnit |
WEEK
week.
|
STANDARD_UNITS
Constructor and Description |
---|
DurationUnit(String name,
String abbreviation,
UnitSystem unitSystem,
DurationUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined DurationUnit with a conversion factor to another DurationUnit.
|
Modifier and Type | Method and Description |
---|---|
String |
getSICoefficientsString() |
DurationUnit |
getStandardUnit() |
equals, equalsIgnoreNaming, getScale, getScaleFactor, hashCode
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final DurationUnit SI
public static final DurationUnit SECOND
public static final DurationUnit ATTOSECOND
public static final DurationUnit FEMTOSECOND
public static final DurationUnit PICOSECOND
public static final DurationUnit NANOSECOND
public static final DurationUnit MICROSECOND
public static final DurationUnit MILLISECOND
public static final DurationUnit MINUTE
public static final DurationUnit HOUR
public static final DurationUnit DAY
public static final DurationUnit WEEK
public DurationUnit(String name, String abbreviation, UnitSystem unitSystem, DurationUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- the long name of the unitabbreviation
- the abbreviation of the unitunitSystem
- the unit system, e.g. SI or ImperialreferenceUnit
- the unit to convert toscaleFactorToReferenceUnit
- multiply a value in this unit by the factor to convert to the given reference unitpublic final DurationUnit getStandardUnit()
getStandardUnit
in class Unit<DurationUnit>
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<DurationUnit>
Copyright © 2015–2018 Delft University of Technology. All rights reserved.