Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.commerce.ebusiness.price.quote
Class ImmutableMoney

    java.lang.Object
      com.bea.commerce.ebusiness.price.quote.AbstractMoney
          com.bea.commerce.ebusiness.price.quote.ImmutableMoney

All Implemented Interfaces
  Money, Serializable, Cloneable

Deprecated

    @Deprecated
    public class ImmutableMoney

extends AbstractMoney
implements Cloneable

See Also
  Serialized Form

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

### ImmutableMoney

    public ImmutableMoney(double value,
                          String currency)

  Deprecated
  Constructs a new ImmutableMoney object with a value and currency as specified by the given parameters.

  Parameters
    `value` - the amount of money
    `currency` - the string value of the currency

Method Detail

### create

    public static ImmutableMoney create(Money axiomMoney)

  Deprecated
  Create a new immutable money object from the com.beasys.commerce.axiom.units.Money object passed in.

  Parameters
    `axiomMoney` - a money object
  Returns
    a new ImmutableMoney object
  See Also
    `Money`

### create

    public static ImmutableMoney create(Money money,
                                        double value)

  Deprecated
  Create a new immutable money object. The currency is obtained from the money object specified and the value of the new object will match the value specified.

  Parameters
    `money` - a money object
    `value` - the amount of the new money object
  Returns
    a new ImmutableMoney object
  See Also
    `Money`

### create

    public static ImmutableMoney create(Money money)

  Deprecated
  Create a new immutable money object. The values for the new object will be obtained from the specified money object.

  Parameters
    `money` - a money object
  Returns
    a new ImmutableMoney object
  See Also
    `Money`

### getValue

    public double getValue()

  Deprecated
  Specified by:
    `getValue` in interface `Money`
  Specified by:
    `getValue` in class `AbstractMoney`
  Returns
    the amount of money.

### getCurrency

    public String getCurrency()

  Deprecated
  Specified by:
    `getCurrency` in interface `Money`
  Specified by:
    `getCurrency` in class `AbstractMoney`
  Returns
    the currency string.

### toString

    public String toString()

  Deprecated
  Returns the class of the object and the value and currency of the object.

  Overrides:
    `toString` in class `AbstractMoney`
  Returns
    the value and currency of the object as a String

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.