Uses of Class
org.tentackle.common.BMoney
-
Packages that use BMoney Package Description org.tentackle.common Common classes for build- and runtime. -
-
Uses of BMoney in org.tentackle.common
Subclasses of BMoney in org.tentackle.common Modifier and Type Class Description classDMoneyA DMoney is the same as a BMoney but will be treated differently when stored in the database.
A BMoney is stored as a DOUBLE for the value and an INTEGER for the scale.Methods in org.tentackle.common that return BMoney Modifier and Type Method Description BMoneyBMoney. absolute()Gets the absolute value.BMoneyBMoney. add(BMoney val)Adds a BMoney to this value and returns a new object.protected BMoneyBMoney. alignScale(BMoney val)Check the scale of the given money value.BMoneyBMoney. clone()Clones a BMoney value.BMoneyBMoney. divide(double val)Divides a BMoney by double and returns a new object.BMoneyBMoney. invert()Inverts this money value.BMoneyBMoney. multiply(double val)Multiplies this BMoney by a double and returns a new object.BMoneyBMoney. smallestPositive()Returns the smalles positive value.
Ex.: if scale is 2 --> 0.01 will be returned.BMoneyBMoney. subtract(BMoney val)Subtracts a BMoney from this value and returns a new object.Methods in org.tentackle.common with parameters of type BMoney Modifier and Type Method Description BMoneyBMoney. add(BMoney val)Adds a BMoney to this value and returns a new object.DMoneyDMoney. add(BMoney val)protected BMoneyBMoney. alignScale(BMoney val)Check the scale of the given money value.doubleBMoney. divide(BMoney val)Divides a BMoney by this value and returns a new object.BMoneyBMoney. subtract(BMoney val)Subtracts a BMoney from this value and returns a new object.DMoneyDMoney. subtract(BMoney val)Constructors in org.tentackle.common with parameters of type BMoney Constructor Description BMoney(BMoney val, int scale)Creates a BMoney from a BMoney (useful to rescale)DMoney(BMoney val, int scale)Creates a DMoney from a BMoney (useful to rescale)
-