static void dropValueFromMap(Map map, B value) { for (Iterator> it = map.entrySet().iterator(); it.hasNext();) if (eq(it.next().getValue(), value)) it.remove(); }