public class FloatMoneyPerArea extends AbstractFloatScalarRel<MoneyPerAreaUnit,FloatMoneyPerArea>
FloatScalar.Rel<MoneyPerAreaUnit> value = new FloatScalar.Rel<MoneyPerAreaUnit>(100.0, MoneyPerAreaUnit.SI);we can now write:
FloatMoneyPerArea value = new FloatMoneyPerArea(100.0, MoneyPerAreaUnit.SI);The compiler will automatically recognize which units belong to which quantity, and whether the quantity type and the unit used are compatible.
Copyright (c) 2013-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
si| Constructor and Description |
|---|
FloatMoneyPerArea(double value,
MoneyPerAreaUnit unit)
Construct FloatMoneyPerArea scalar using a double value.
|
FloatMoneyPerArea(FloatMoneyPerArea value)
Construct FloatMoneyPerArea scalar.
|
FloatMoneyPerArea(float value,
MoneyPerAreaUnit unit)
Construct FloatMoneyPerArea scalar.
|
| Modifier and Type | Method and Description |
|---|---|
FloatDimensionless |
divideBy(FloatMoneyPerArea v)
Calculate the division of FloatMoneyPerArea and FloatMoneyPerArea, which results in a FloatDimensionless scalar.
|
FloatMoneyPerArea |
instantiateRel(float value,
MoneyPerAreaUnit unit)
Construct a new Relative Immutable FloatScalar of the right type.
|
static FloatMoneyPerArea |
interpolate(FloatMoneyPerArea zero,
FloatMoneyPerArea one,
float ratio)
Interpolate between two values.
|
static FloatMoneyPerArea |
max(FloatMoneyPerArea r1,
FloatMoneyPerArea r2)
Return the maximum value of two monetary scalars.
|
static FloatMoneyPerArea |
max(FloatMoneyPerArea r1,
FloatMoneyPerArea r2,
FloatMoneyPerArea... rn)
Return the maximum value of more than two monetary scalars.
|
static FloatMoneyPerArea |
min(FloatMoneyPerArea r1,
FloatMoneyPerArea r2)
Return the minimum value of two monetary scalars.
|
static FloatMoneyPerArea |
min(FloatMoneyPerArea r1,
FloatMoneyPerArea r2,
FloatMoneyPerArea... rn)
Return the minimum value of more than two monetary scalars.
|
FloatMoney |
multiplyBy(FloatArea v)
Calculate the multiplication of FloatMoneyPerArea and FloatArea, which results in a FloatMoney scalar.
|
abs, ceil, divideBy, floor, minus, multiplyBy, neg, plus, rint, roundcompareTo, doubleValue, eq, eq0, equals, floatValue, ge, ge0, getInUnit, getInUnit, getSI, gt, gt0, hashCode, intValue, le, le0, longValue, lt, lt0, ne, ne0, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelative, setDisplayUnitbyteValue, shortValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitDIV, MULT, POWpublic FloatMoneyPerArea(float value,
MoneyPerAreaUnit unit)
value - float; float valueunit - MoneyPerAreaUnit; unit for the float valuepublic FloatMoneyPerArea(FloatMoneyPerArea value)
value - FloatMoneyPerArea; Scalar from which to construct this instancepublic FloatMoneyPerArea(double value,
MoneyPerAreaUnit unit)
value - double; double valueunit - MoneyPerAreaUnit; unit for the resulting float valuepublic final FloatMoneyPerArea instantiateRel(float value, MoneyPerAreaUnit unit)
instantiateRel in class AbstractFloatScalarRel<MoneyPerAreaUnit,FloatMoneyPerArea>value - float; the float valueunit - U; the unitpublic static FloatMoneyPerArea interpolate(FloatMoneyPerArea zero, FloatMoneyPerArea one, float ratio)
zero - FloatMoneyPerArea; the low valueone - FloatMoneyPerArea; the high valueratio - float; the ratio between 0 and 1, inclusivepublic static FloatMoneyPerArea max(FloatMoneyPerArea r1, FloatMoneyPerArea r2)
r1 - FloatMoneyPerArea; the first scalarr2 - FloatMoneyPerArea; the second scalarpublic static FloatMoneyPerArea max(FloatMoneyPerArea r1, FloatMoneyPerArea r2, FloatMoneyPerArea... rn)
r1 - FloatMoneyPerArea; the first scalarr2 - FloatMoneyPerArea; the second scalarrn - FloatMoneyPerArea...; the other scalarspublic static FloatMoneyPerArea min(FloatMoneyPerArea r1, FloatMoneyPerArea r2)
r1 - FloatMoneyPerArea; the first scalarr2 - FloatMoneyPerArea; the second scalarpublic static FloatMoneyPerArea min(FloatMoneyPerArea r1, FloatMoneyPerArea r2, FloatMoneyPerArea... rn)
r1 - FloatMoneyPerArea; the first scalarr2 - FloatMoneyPerArea; the second scalarrn - FloatMoneyPerArea...; the other scalarspublic final FloatDimensionless divideBy(FloatMoneyPerArea v)
v - FloatMoneyPerArea; FloatMoneyPerArea scalarpublic final FloatMoney multiplyBy(FloatArea v)
v - FloatArea; FloatMoneyPerArea scalarCopyright © 2015–2019 Delft University of Technology. All rights reserved.