public Set findDiff()

in src/main/java/aws/cfn/codegen/CfnSpecification.java [54:70]


    public Set<Difference> findDiff(CfnSpecification toSpec) {
        return resourceTypes.entrySet().stream()
            .filter(entry -> toSpec.resourceTypes.containsKey(entry.getKey()))
            .collect(
                HashSet::new,
                (diffSet, e) -> {
                    if (!toSpec.getResourceTypes().get(e.getKey()).equals(e)) {
                        Difference diff = new Difference();
                        diff.setFromType(e.getValue());
                        diff.setFromVersion(resourceSpecificationVersion);
                        diff.setToType(toSpec.getResourceTypes().get(e.getKey()));
                        diff.setToVersion(toSpec.getResourceSpecificationVersion());
                        diffSet.add(diff);
                    }
                },
                AbstractCollection::addAll);
    }