Class PairLists.MapPairList<T,U>

Type Parameters:
T - First type
U - Second type
All Implemented Interfaces:
Iterable<Map.Entry<T,U>>, Collection<Map.Entry<T,U>>, List<Map.Entry<T,U>>, SequencedCollection<Map.Entry<T,U>>, PairList<T,U>
Enclosing class:
PairLists

static class PairLists.MapPairList<T,U> extends PairLists.AbstractPairList<T,U>
List of pairs backed by a map.

It works for all maps, but is efficient only if ImmutableList.copyOf(Iterable) on the key-set and value-set are O(0). Therefore, we recommend using it only with maps that extend ImmutableMap.