All Packages Class Hierarchy This Package Previous Next Index
Class com.roguewave.examples.money.currency.v1_0.USDollarGroup
java.lang.Object
|
+----com.roguewave.examples.money.currency.v1_0.USDollarGroup
- public class USDollarGroup
- extends Object
- implements ExchangeGroup
Implements a currency exchange group. An exchange group's purpose in life
is to create instances of the Exchange
class when given source
and target currencies and an ExchangeRateTable
. The class
USDollarGroup
creates Exchange
objects with a
USDollarExchange
implementation.
- Author:
- Trevor Misfeldt
- See Also:
- ExchangeGroup, Exchange, USDollarExchange
-
NAME
- The name of this group is "USDollarGroup"
-
USDollarGroup()
- Creates a US Dollar group.
-
getExchange(String, String, ExchangeRateTable)
- Creates an exchange object, with the rates in the given exchange rate table,
that manages the conversion of source currency amounts to target currency
amounts through the use of the US Dollar as a base.
-
getName()
- Returns the name of this exchange group.
NAME
public static final String NAME
- The name of this group is "USDollarGroup"
USDollarGroup
public USDollarGroup()
- Creates a US Dollar group.
getName
public String getName()
- Returns the name of this exchange group.
- Returns:
- the name
getExchange
public Exchange getExchange(String source,
String target,
ExchangeRateTable rates)
- Creates an exchange object, with the rates in the given exchange rate table,
that manages the conversion of source currency amounts to target currency
amounts through the use of the US Dollar as a base.
- Parameters:
- source - the source currency mnemonic
- target - the target currency mnemonic
- rates - the exchange rate table
- Returns:
- an exchange object for converting from source->target or, if one
could not be found, a
null
value.
All Packages Class Hierarchy This Package Previous Next Index