Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8
    • Component/s: API
    • Labels:
      None

      Description

      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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            atsticks
            Reporter:
            atsticks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: