|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.prozima.pengine.Cost
public class Cost
Cost specifies an amount of money in a specific currency. Cost utilises
BigDecimal to represent the value as this class provides much greater
precision in financial calculations.
| Constructor Summary | |
|---|---|
Cost()
Create a new cost. |
|
Cost(java.math.BigDecimal inAmount,
java.util.Currency inCurrency)
Create a new cost and initialise its values. |
|
Cost(java.util.Currency inCurrency)
Create a new cost which has zero value. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cost()
public Cost(java.math.BigDecimal inAmount,
java.util.Currency inCurrency)
inAmount - Amount of money represented by cost.inCurrency - Currency in which the cost is expressed.public Cost(java.util.Currency inCurrency)
inCurrency - Currency in which the cost is expressed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||