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

        atsticks created issue -
        atsticks made changes -
        Field Original Value New Value
        Component/s Spec: Specification [ 14828 ]
        atsticks made changes -
        Fix Version/s 0.3 [ 16322 ]
        Fix Version/s 0.2.0 [ 16317 ]
        keilw made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        keilw made changes -
        Component/s API: Core Artifacts [ 14820 ]
        Component/s API: exchange rates and currency conversion [ 14821 ]
        atsticks made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 0.8 [ 16791 ]
        Fix Version/s 0.3 [ 16322 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: