public class MoneyPerAreaUnit extends LinearUnit<MoneyPerAreaUnit>
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 Sep 5, 2015
Modifier and Type | Field and Description |
---|---|
static MoneyPerAreaUnit |
EUR_PER_HECTARE
Euro per hectare.
|
static MoneyPerAreaUnit |
EUR_PER_SQUARE_METER
Euro per square meter.
|
static MoneyPerAreaUnit |
USD_PER_ACRE
US$ per acre.
|
static MoneyPerAreaUnit |
USD_PER_SQUARE_FOOT
US$ per square foot.
|
STANDARD_UNITS
Constructor and Description |
---|
MoneyPerAreaUnit(MoneyUnit moneyUnit,
AreaUnit areaUnit,
String name,
String abbreviation)
Build a user-defined money per area unit from a money unit and an area unit.
|
MoneyPerAreaUnit(String name,
String abbreviation,
MoneyPerAreaUnit referenceUnit,
double scaleFactorToReferenceUnit)
Build a user-defined MoneyPerAreaUnit with a conversion factor to another MoneyPerAreaUnit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AreaUnit |
getAreaUnit() |
MoneyUnit |
getMoneyUnit() |
String |
getSICoefficientsString() |
static MoneyPerAreaUnit |
getStandardMoneyPerAreaUnit() |
MoneyPerAreaUnit |
getStandardUnit() |
int |
hashCode() |
protected static void |
setStandardUnit(MoneyUnit standardMoneyUnit)
Set the standard MoneyPerAreaUnit in case the standard MoneyUnit changes, as the standard money unit is flexible.
|
equalsIgnoreNaming, getScale, getScaleFactor
generateHashCode, getAbbreviation, getAbbreviationKey, getAllUnitsOfThisType, getName, getNameKey, getSICoefficients, getUnits, getUnitSystem, isBaseSIUnit, isLocalizable, lookupOrCreateSIUnitWithSICoefficients, lookupOrCreateUnitWithSICoefficients, lookupUnitWithSICoefficients, toString
public static final MoneyPerAreaUnit EUR_PER_SQUARE_METER
public static final MoneyPerAreaUnit EUR_PER_HECTARE
public static final MoneyPerAreaUnit USD_PER_ACRE
public static final MoneyPerAreaUnit USD_PER_SQUARE_FOOT
public MoneyPerAreaUnit(MoneyUnit moneyUnit, AreaUnit areaUnit, String name, String abbreviation)
moneyUnit
- MoneyUnit; the unit of money for the money per area unit, e.g., EURareaUnit
- AreaUnit; the unit of area for the money per area unit, e.g., m^2name
- 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 MoneyPerAreaUnit(String name, String abbreviation, MoneyPerAreaUnit referenceUnit, double scaleFactorToReferenceUnit)
name
- String; the long name of the unitabbreviation
- String; the abbreviation of the unitreferenceUnit
- MoneyPerAreaUnit; 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 AreaUnit getAreaUnit()
protected static void setStandardUnit(MoneyUnit standardMoneyUnit)
standardMoneyUnit
- MoneyUnit; the new standard money unit.public final MoneyPerAreaUnit getStandardUnit()
getStandardUnit
in class Unit<MoneyPerAreaUnit>
public static MoneyPerAreaUnit getStandardMoneyPerAreaUnit()
public final String getSICoefficientsString()
getSICoefficientsString
in class Unit<MoneyPerAreaUnit>
public int hashCode()
hashCode
in class LinearUnit<MoneyPerAreaUnit>
public boolean equals(Object obj)
equals
in class LinearUnit<MoneyPerAreaUnit>
Copyright © 2015–2019 Delft University of Technology. All rights reserved.