static Map lambdaMapLike filterByValuePredicate(IPred pred, Map map) { if (map == null) null; Map map2 = similarEmptyMap(map); for (Map.Entry e : map.entrySet()) if (pred.get(e.getValue())) map2.put(e.getKey(), e.getValue()); ret map2; } static Map filterByValuePredicate(Map map, IPred pred) { ret filterByValuePredicate(pred, map); }