| Modifier and Type | Class and Description |
|---|---|
class |
DMoney
A 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. |
| Modifier and Type | Method and Description |
|---|---|
BMoney |
BMoney.absolute()
Gets the absolute value.
|
BMoney |
BMoney.add(BMoney val)
Adds a BMoney to this value and returns a new object.
|
protected BMoney |
BMoney.alignScale(BMoney val)
Check the scale of the given money value.
|
BMoney |
BMoney.clone()
Clones a BMoney value.
|
BMoney |
BMoney.divide(double val)
Divides a BMoney by double and returns a new object.
|
BMoney |
BMoney.invert()
Inverts this money value.
|
BMoney |
BMoney.multiply(double val)
Multiplies this BMoney by a double and returns a new object.
|
BMoney |
BMoney.smallestPositive()
Returns the smalles positive value.
Ex.: if scale is 2 --> 0.01 will be returned. |
BMoney |
BMoney.subtract(BMoney val)
Subtracts a BMoney from this value and returns a new object.
|
| Modifier and Type | Method and Description |
|---|---|
DMoney |
DMoney.add(BMoney val) |
BMoney |
BMoney.add(BMoney val)
Adds a BMoney to this value and returns a new object.
|
protected BMoney |
BMoney.alignScale(BMoney val)
Check the scale of the given money value.
|
double |
BMoney.divide(BMoney val)
Divides a BMoney by this value and returns a new object.
|
DMoney |
DMoney.subtract(BMoney val) |
BMoney |
BMoney.subtract(BMoney val)
Subtracts a BMoney from this value and returns a new object.
|
| Constructor and 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)
|
Tentackle - a domain driven enterprise framework