Here you can find the source of mergeFixedValueConditions(Map
public static Map<String, Set<Object>> mergeFixedValueConditions(Map<String, Set<Object>> left, Map<String, Set<Object>> right)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static Map<String, Set<Object>> mergeFixedValueConditions(Map<String, Set<Object>> left, Map<String, Set<Object>> right) { right.keySet().forEach(columnName -> { Set<Object> newValues = right.get(columnName); if (newValues != null) { left.merge(columnName, newValues, (l, r) -> new HashSet<Object>() { {/*ww w. j a v a2 s. co m*/ addAll(l); addAll(r); } }); } }); return left; } }