|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.bea.commerce.ebusiness.price.quote.AbstractMoney
|
+--com.bea.commerce.ebusiness.price.quote.ImmutableMoney
| Fields inherited from class com.bea.commerce.ebusiness.price.quote.AbstractMoney |
NO_CURRENCY,
ZERO |
| Constructor Summary | |
ImmutableMoney(double value,
java.lang.String currency)
Constructs a new ImmutableMoney object with a value and currency as specified by the given parameters. |
|
| Method Summary | |
static ImmutableMoney |
create(Money axiomMoney)
Create a new immutable money object from the com.beasys.commerce.axiom.units.Money object passed in. |
static ImmutableMoney |
create(Money money)
Create a new immutable money object. |
static ImmutableMoney |
create(Money money,
double value)
Create a new immutable money object. |
java.lang.String |
getCurrency()
|
double |
getValue()
|
java.lang.String |
toString()
Returns the class of the object and the value and currency of the object. |
| Methods inherited from class com.bea.commerce.ebusiness.price.quote.AbstractMoney |
compare,
equals |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public ImmutableMoney(double value,
java.lang.String currency)
value - the amount of moneycurrency - the string value of the currency| Method Detail |
public static ImmutableMoney create(Money axiomMoney)
axiomMoney - a money objectMoney
public static ImmutableMoney create(Money money,
double value)
money - a money objectvalue - the amount of the new money objectMoneypublic static ImmutableMoney create(Money money)
money - a money objectMoneypublic double getValue()
public java.lang.String getCurrency()
public java.lang.String toString()
|
© 2002 BEA Systems, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||