Home > Q&A > body text
你看 C++ stl 都有 std::pair android 还写了 android.util.Pair
std::pair
android.util.Pair
怪我咯2017-04-17 11:50:29
You can look at Entry<K,V>, which is actually similar to pair
阿神2017-04-17 11:50:29
std::pair acts as an element in std::map
Map.Entry also acts as an element in Map
This is the general idea
大家讲道理2017-04-17 11:50:29
Google’s Guava summarizes it well: Tuples for n >= 2