Refactor enum mappings

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: backend

      Context:

      We sometimes map one enum to another, eg mapping an Optimize specific unit to ChronoUnit. Currently, this is mostly done via mapping functions but we want to replace these by adding the mapping, eg mapping to ChronoUnit, as a field of the optimize enum itself. In some cases where mappings often occur it could also be worth considering adding a mapping util class instead (eg a util for all mappers which map to ChronoUnit)

       

      AT:

      • mapping functions from one enum to another are replaced by adding the target enum to the source enum as a field OR a mapping utiil is added for recurring mappings

            Assignee:
            Unassigned
            Reporter:
            Helene Waechtler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: