static Map pairsToOrderedMap(Collection extends Pair> l) { Map map = litorderedmap(); if (l != null) for (Pair p : l) map.put(p.a, p.b); ret map; }