public static void getDifferenceSetByGuava(Map<String, Object> bigMap, Map<String, String> smallMap, Map<String, Object> resMap) { Set<String> bigMapKey = bigMap.keySet(); Set<String> smallMapKey = smallMap.keySet(); Set<String> differenceSet = Sets.difference(bigMapKey, smallMapKey); for (String key : differenceSet) { resMap.put(key, bigMap.get(key)); } }
原创文章,作者:254126420,如若转载,请注明出处:https://blog.ytso.com/277286.html