static Map getTagsToCreate()

in aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy/TagUtils.java [76:83]


    static Map<String, String> getTagsToCreate(final Map<String, String> newTags, final Map<String, String> oldTags) {
        final Map<String, String> tags = new HashMap<>();
        final Set<Map.Entry<String, String>> entriesToCreate = Sets.difference(newTags.entrySet(), oldTags.entrySet());
        for (Map.Entry<String, String> entry : entriesToCreate) {
            tags.put(entry.getKey(), entry.getValue());
        }
        return tags;
    }