|
| 1 | +package org.dataflowanalysis.examplemodels; |
| 2 | + |
| 3 | +import java.util.ArrayList; |
| 4 | +import java.util.HashMap; |
| 5 | +import java.util.List; |
| 6 | +import java.util.Map; |
| 7 | + |
| 8 | +import com.google.common.collect.ImmutableMap; |
| 9 | + |
| 10 | +public class TuhhModels { |
| 11 | + |
| 12 | + private static final Map<String, List<Integer>> TUHH_MODELS = ImmutableMap.<String, List<Integer>>builder() |
| 13 | + .put("anilallewar", List.of(0, 6, 7, 8, 9, 11, 12, 18)) |
| 14 | + .put("apssouza22", List.of(0, 2, 4, 6, 7, 8, 12, 18)) |
| 15 | + .put("callistaenterprise", List.of(0, 2, 6, 11, 18)) |
| 16 | + .put("ewolff", List.of(5, 10, 12, 18)) |
| 17 | + .put("ewolff-kafka", List.of(0, 3, 4, 5, 6, 7, 8, 9, 18)) |
| 18 | + .put("fernandoabcampos", List.of(18)) |
| 19 | + .put("georgwittberger", List.of(0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 18)) |
| 20 | + .put("jferrater", List.of(0, 2, 3, 5, 6, 7, 8, 9, 18)) |
| 21 | + .put("koushikkothagal", List.of(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 18)) |
| 22 | + .put("mdeket", List.of(5)) |
| 23 | + .put("mudigal-technologies", List.of(0, 2, 4, 5, 7, 8, 11, 18)) |
| 24 | + .put("rohitghatol", List.of(10, 12, 18)) |
| 25 | + .put("spring-petclinic", List.of(0, 2, 3, 5, 6, 7, 8, 9, 18)) |
| 26 | + .put("sqshq", List.of(0, 6, 7, 8, 9, 10, 11, 12, 18)) |
| 27 | + .put("yidongnan", List.of(0, 2, 3, 4, 5, 6, 7, 8, 9, 18)) |
| 28 | + .build(); |
| 29 | + |
| 30 | + /** |
| 31 | + * Returns a deep copy of the {@code TUHH_MODELS} map. |
| 32 | + */ |
| 33 | + public static Map<String, List<Integer>> getTuhhModels() { |
| 34 | + Map<String, List<Integer>> deepCopy = new HashMap<>(); |
| 35 | + |
| 36 | + for (var entry : TUHH_MODELS.entrySet()) { |
| 37 | + deepCopy.put(entry.getKey(), new ArrayList<>(entry.getValue())); |
| 38 | + } |
| 39 | + |
| 40 | + return deepCopy; |
| 41 | + } |
| 42 | +} |
0 commit comments