-
Task
-
Resolution: Unresolved
-
L3 - Default
-
None
-
None
-
Not defined
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