Currency method to stream available Currencies

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: core-libs
    • None
    • b09
    • generic
    • generic

      java.util.Currency.getAvailableCurrencies() returns a Set of available currencies. While producing a Stream from a Set is simple enough for users, the method makes a defensive copy on the internal set.

      Providing a dedicated method such as availableCurrencies() gets rid of the need to perform a intermediate defensive copy operation, as the internal set is streamed directly.

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: