static bool mapPut_trueIfChanged(Map map, A key, B value) { if (map != null && key != null && value != null) if (eq(map.get(key), value)) false; else ret true with map.put(key, value); false; }