Package ome.model.units
Class Conversion.Mul
- java.lang.Object
-
- ome.model.units.Conversion
-
- ome.model.units.Conversion.Mul
-
- Enclosing class:
- Conversion
public static class Conversion.Mul extends Conversion
Multiplies allConversion
instances viaBigDecimal.multiply(BigDecimal)
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ome.model.units.Conversion
Conversion.Add, Conversion.Int, Conversion.Mul, Conversion.Pow, Conversion.Rat, Conversion.Sym
-
-
Field Summary
-
Fields inherited from class ome.model.units.Conversion
conversions
-
-
Constructor Summary
Constructors Constructor Description Mul(Conversion[] conversions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimal
convert(double original)
Primary operator forConversion
instances.
-
-
-
Constructor Detail
-
Mul
public Mul(Conversion[] conversions)
-
-
Method Detail
-
convert
public java.math.BigDecimal convert(double original)
Description copied from class:Conversion
Primary operator forConversion
instances.- Specified by:
convert
in classConversion
- Parameters:
original
- A unit value which is to be processed through the tree-like representation of this equation. OnlyConversion.Sym
objects will actually use the "original" value.- Returns:
- a
BigDecimal
result from the calculation. If this value maps toDouble.NEGATIVE_INFINITY
orDouble.POSITIVE_INFINITY
, then aBigResult
exception should be thrown before returning to clients.
-
-