Skip to main content

[JIRA] Commented: (JAVAMONEY-26) Multi ExchangeRate

  • From: "atsticks (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (JAVAMONEY-26) Multi ExchangeRate
  • Date: Wed, 6 Feb 2013 21:17:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


atsticks commented on JAVAMONEY-26:

Basically they are currently here, because I was thinking about using them in 
some API/SPI here for multi provider access of exchange rates (until now I 
did not have the time, to dive deeper on this topic). If finally (since it 
shows not to be useful, I am not able to make a useful proposal or whatever) 
they are not used by this module, of course, I totally agree, to move them to 
the extensions part. So just be a bit patient ;-)

> Multi ExchangeRate
> ------------------
>                 Key: JAVAMONEY-26
>                 URL:
>             Project: javamoney
>          Issue Type: New Feature
>          Components: Spec: conversion, Spec: specification
>            Reporter: atsticks
>            Assignee: atsticks
>             Fix For: 0.2.0
> Define a compound multi-valued exchange rate that consists of several 
> exchange rates:
> * of the same provider, but with different target currencies
> * of different providers, but with the same target currency
> * a mix of the above.
> A compound value has the following properties:
> * it is immutable.
> * it does not offer arithemtics
> * it provides access to all its containing{{ExchangeRate}} instances:
> ** {{Map<String,ExchangeRate> getAll()}}
> ** {{Enumeration<String> getKeys();}}
> ** {{ExchangeRategetExchangeRate(String key)}}
> ** {{boolean isExchangeRateDefined(String key)}}
> * It allows access to all different rates contained:
> ** {{Enumeration<ExchangeRate> getContainedExchangeRates()}}
> * it provides a {{CompoundExchangeRateFactory}} for creating compound 
> values.
> * Since a compound amount is defined to be immutable, it can only be 
> extended/adapted as follows:
> ** {{CompoundExchangeRate add(String key, ExchangeRate amount);}}
> ** {{CompoundExchangeRate remove(String... key);}}
> ** {{CompuntExchangeRateBuilder toBuilder()}} // and using the builder to 
> create a new instance

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


[JIRA] Created: (JAVAMONEY-26) Multi ExchangeRate

atsticks (JIRA) 02/02/2013

[JIRA] Commented: (JAVAMONEY-26) Multi ExchangeRate

chrispheby (JIRA) 02/05/2013

[JIRA] Commented: (JAVAMONEY-26) Multi ExchangeRate

atsticks (JIRA) 02/06/2013

[JIRA] Updated: (JAVAMONEY-26) Multi ExchangeRate

atsticks (JIRA) 02/16/2013

[JIRA] Updated: (JAVAMONEY-26) Multi ExchangeRate

atsticks (JIRA) 02/16/2013
Please Confirm