Creates a Pair from a MapEntry.
Pair.fromMapEntry(MapEntry<T1, T2> entry) : first = entry.key, second = entry.value;