mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 14:12:11 +00:00
Added a copy constructor to ModifiableStatisticQueryDefinitionDTO
This commit is contained in:
1 parent
cd0ee770a3
commit
fbec06e9c8
1 file changed
+13
+13
@@ -34,6 +34,19 @@ public class ModifiableStatisticQueryDefinitionDTO implements StatisticQueryDefi
|
||||
this.filterSelection = new HashMap<>();
|
||||
this.dimensionsToGroupBy = new ArrayList<FunctionDTO>();
|
||||
}
|
||||
|
||||
public ModifiableStatisticQueryDefinitionDTO(ModifiableStatisticQueryDefinitionDTO definition) {
|
||||
localeInfoName = definition.localeInfoName;
|
||||
statisticToCalculate = definition.statisticToCalculate;
|
||||
aggregatorDefinition = definition.aggregatorDefinition;
|
||||
dataRetrieverChainDefinition = definition.dataRetrieverChainDefinition;
|
||||
retrieverSettings = new HashMap<>(definition.retrieverSettings);
|
||||
dimensionsToGroupBy = new ArrayList<>(definition.dimensionsToGroupBy);
|
||||
filterSelection = new HashMap<>();
|
||||
for (DataRetrieverLevelDTO retrieverLevel : definition.filterSelection.keySet()) {
|
||||
filterSelection.put(retrieverLevel, new HashMap<>(definition.filterSelection.get(retrieverLevel)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocaleInfoName() {
|
||||
|
||||
Reference in new issue
Block a user