public class MoneyPerDurationUnit extends LinearUnit<MoneyPerDurationUnit>
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 Sep 5, 2015
| Modifier and Type | Field and Description |
|---|---|
static MoneyPerDurationUnit |
EUR_PER_DAY
Euro per day.
|
static MoneyPerDurationUnit |
EUR_PER_HOUR
Euro per hour.
|
static MoneyPerDurationUnit |
USD_PER_DAY
US$ per day.
|
static MoneyPerDurationUnit |
USD_PER_HOUR
US$ per hour.
|
STANDARD_UNITS| Constructor and Description |
|---|
MoneyPerDurationUnit(MoneyUnit moneyUnit,
DurationUnit durationUnit,
String name,
String abbreviation)
Build a user-defined money per time unit from a money unit and an time unit.
|
MoneyPerDurationUnit(String name,
String abbreviation,
MoneyPerDurationUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined MoneyPerDurationUnit with a conversion factor to another MoneyPerDurationUnit.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DurationUnit |
getDurationUnit() |
MoneyUnit |
getMoneyUnit() |
String |
getSICoefficientsString() |
static MoneyPerDurationUnit |
getStandardMoneyPerDurationUnit() |
MoneyPerDurationUnit |
getStandardUnit() |
int |
hashCode() |
protected static void |
setStandardUnit(MoneyUnit standardMoneyUnit)
Set the standard MoneyPerDurationUnit in case the standard MoneyUnit changes, as the standard money unit is flexible.
|
equalsIgnoreNaming, getScale, getScaleFactorgenerateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getDefaultLocaleAbbreviation, getDefaultLocaleName, getDefaultLocaleTextualRepresentation, getDefaultLocaleTextualRepresentations, getDefaultTextualRepresentation, getName, getSICoefficients, getTextualRepresentations, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toStringpublic static final MoneyPerDurationUnit EUR_PER_HOUR
public static final MoneyPerDurationUnit EUR_PER_DAY
public static final MoneyPerDurationUnit USD_PER_HOUR
public static final MoneyPerDurationUnit USD_PER_DAY
public MoneyPerDurationUnit(MoneyUnit moneyUnit, DurationUnit durationUnit, String name, String abbreviation)
moneyUnit - MoneyUnit; the unit of money for the money per time unit, e.g., EURdurationUnit - DurationUnit; the unit of time for the money per time unit, e.g., hourname - String; the key to the locale file for the long name of the unitabbreviation - String; the key to the locale file for the abbreviation of the unitpublic MoneyPerDurationUnit(String name, String abbreviation, MoneyPerDurationUnit referenceUnit, double scaleFactorToReferenceUnit)
name - String; the long name of the unitabbreviation - String; the abbreviation of the unitreferenceUnit - MoneyPerDurationUnit; the unit to convert toscaleFactorToReferenceUnit - double; multiply a value in this unit by the factor to convert to the given reference
unitpublic final MoneyUnit getMoneyUnit()
public final DurationUnit getDurationUnit()
protected static void setStandardUnit(MoneyUnit standardMoneyUnit)
standardMoneyUnit - MoneyUnit; the new standard money unit.public final MoneyPerDurationUnit getStandardUnit()
getStandardUnit in class Unit<MoneyPerDurationUnit>public static MoneyPerDurationUnit getStandardMoneyPerDurationUnit()
public final String getSICoefficientsString()
getSICoefficientsString in class Unit<MoneyPerDurationUnit>public int hashCode()
hashCode in class LinearUnit<MoneyPerDurationUnit>public boolean equals(Object obj)
equals in class LinearUnit<MoneyPerDurationUnit>Copyright © 2015–2019 Delft University of Technology. All rights reserved.