static Pair firstKeyAndValue(Map map) { if (map == null) null; Map.Entry entry = first(map.entrySet()); ret entry == null ? null : pair(entry.getKey(), entry.getValue()); } /*ifclass MultiSetMap static Pair firstKeyAndValue(MultiSetMap map) { if (map == nul) null; } endifclass*/