this.listToscaDataDefinition = listToscaDataDefinition;
}
- public ListCapabilityDataDefinition mergeListItemsByName(ListCapabilityDataDefinition other){
- Map<String, CapabilityDataDefinition> mapByName = listToMapByName();
- Map<String, CapabilityDataDefinition> mapOtherByName = other.listToMapByName();
- mapByName.putAll(mapOtherByName);
- return new ListCapabilityDataDefinition(mapByName.values().stream().collect(Collectors.toList()));
- }
}