Package ome.model.units
Class Conversion.Int
- java.lang.Object
-
- ome.model.units.Conversion
-
- ome.model.units.Conversion.Int
-
- Enclosing class:
- Conversion
public static class Conversion.Int extends Conversion
Simply is a representation of a possibly large integer.
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigDecimalconvert(double original)Returns aBigDecimalrepresentation of this int.
-
-
-
Method Detail
-
convert
public java.math.BigDecimal convert(double original)
Returns aBigDecimalrepresentation of this int. Original argument is ignored.- Specified by:
convertin classConversion- Parameters:
original- A unit value which is to be processed through the tree-like representation of this equation. OnlyConversion.Symobjects will actually use the "original" value.- Returns:
- a
BigDecimalresult from the calculation. If this value maps toDouble.NEGATIVE_INFINITYorDouble.POSITIVE_INFINITY, then aBigResultexception should be thrown before returning to clients.
-
-