|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.commerce.ebusiness.price.quote.AbstractMoney com.bea.commerce.ebusiness.price.quote.ImmutableMoney
@Deprecated public class ImmutableMoney
Field Summary |
---|
Fields inherited from class com.bea.commerce.ebusiness.price.quote.AbstractMoney |
---|
NO_CURRENCY, ZERO |
Constructor Summary | |
---|---|
ImmutableMoney(double value,
String currency)
Deprecated Constructs a new ImmutableMoney object with a value and currency as specified by the given parameters. |
Method Summary | |
---|---|
static ImmutableMoney |
create(Money axiomMoney)
Deprecated Create a new immutable money object from the com.beasys.commerce.axiom.units.Money object passed in. |
static ImmutableMoney |
create(Money money)
Deprecated Create a new immutable money object. |
static ImmutableMoney |
create(Money money,
double value)
Deprecated Create a new immutable money object. |
String |
getCurrency()
Deprecated |
double |
getValue()
Deprecated |
String |
toString()
Deprecated 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, String currency)
value
- the amount of moneycurrency
- the string value of the currencyMethod Detail |
---|
public static ImmutableMoney create(Money axiomMoney)
axiomMoney
- a money object
Money
public static ImmutableMoney create(Money money, double value)
money
- a money objectvalue
- the amount of the new money object
Money
public static ImmutableMoney create(Money money)
money
- a money object
Money
public double getValue()
getValue
in interface Money
getValue
in class AbstractMoney
public String getCurrency()
getCurrency
in interface Money
getCurrency
in class AbstractMoney
public String toString()
toString
in class AbstractMoney
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |