|
| 1 | +package adf_core_python.core.agent.precompute; |
| 2 | + |
| 3 | +import java.util.HashMap; |
| 4 | +import java.util.List; |
| 5 | +import java.util.Map; |
| 6 | + |
| 7 | +public final class PreData { |
| 8 | + |
| 9 | + public Map<String, Integer> intValues; |
| 10 | + public Map<String, Double> doubleValues; |
| 11 | + public Map<String, String> stringValues; |
| 12 | + public Map<String, Integer> idValues; |
| 13 | + public Map<String, Boolean> boolValues; |
| 14 | + |
| 15 | + public Map<String, List<Integer>> intLists; |
| 16 | + public Map<String, List<Double>> doubleLists; |
| 17 | + public Map<String, List<String>> stringLists; |
| 18 | + public Map<String, List<Integer>> idLists; |
| 19 | + public Map<String, List<Boolean>> boolLists; |
| 20 | + |
| 21 | + public boolean isReady; |
| 22 | + public String readyID; |
| 23 | + |
| 24 | + public PreData() { |
| 25 | + this.intValues = new HashMap<>(); |
| 26 | + this.doubleValues = new HashMap<>(); |
| 27 | + this.stringValues = new HashMap<>(); |
| 28 | + this.idValues = new HashMap<>(); |
| 29 | + this.boolValues = new HashMap<>(); |
| 30 | + this.intLists = new HashMap<>(); |
| 31 | + this.doubleLists = new HashMap<>(); |
| 32 | + this.stringLists = new HashMap<>(); |
| 33 | + this.idLists = new HashMap<>(); |
| 34 | + this.boolLists = new HashMap<>(); |
| 35 | + this.isReady = false; |
| 36 | + this.readyID = ""; |
| 37 | + } |
| 38 | + |
| 39 | + |
| 40 | + public PreData copy() { |
| 41 | + PreData preData = new PreData(); |
| 42 | + preData.intValues = new HashMap<>(this.intValues); |
| 43 | + preData.doubleValues = new HashMap<>(this.doubleValues); |
| 44 | + preData.stringValues = new HashMap<>(this.stringValues); |
| 45 | + preData.idValues = new HashMap<>(this.idValues); |
| 46 | + preData.boolValues = new HashMap<>(this.boolValues); |
| 47 | + preData.intLists = new HashMap<>(this.intLists); |
| 48 | + preData.doubleLists = new HashMap<>(this.doubleLists); |
| 49 | + preData.stringLists = new HashMap<>(this.stringLists); |
| 50 | + preData.idLists = new HashMap<>(this.idLists); |
| 51 | + preData.boolLists = new HashMap<>(this.boolLists); |
| 52 | + preData.isReady = this.isReady; |
| 53 | + preData.readyID = this.readyID; |
| 54 | + return preData; |
| 55 | + } |
| 56 | +} |
0 commit comments