- /**
- * Return the contents of a list of concepts as a list of maps of concepts.
- *
- * @param conceptList the concept list
- * @return the list of concept map
- */
- private <T extends ToscaEntity> List<Map<String, T>> asConceptMapList(List<T> conceptList) {
- List<Map<String, T>> toscaEntityMapList = new ArrayList<>();
- for (T concept : conceptList) {
- Map<String, T> conceptMap = new TreeMap<>();
- conceptMap.put(concept.getName(), concept);
- toscaEntityMapList.add(conceptMap);
- }
-
- return toscaEntityMapList;
- }
-
- /**
- * Return the contents of a list of concepts as map of concepts.
- *
- * @param conceptList the concept list
- * @return the list of concept map
- */
- private <T extends ToscaEntity> Map<String, T> asConceptMap(List<T> conceptList) {
- Map<String, T> conceptMap = new LinkedHashMap<>();
- for (T concept : conceptList) {
- conceptMap.put(concept.getName(), concept);
- }
-
- return conceptMap;
- }
-