static L keysForValue(Map map, B value) { new L l; for (A key : map.keySet()) if (eq(map.get(key), value)) l.add(key); ret l; }