为什么 Java 没有 Pair
PHP中文网
PHP中文网 2017-04-17 11:48:29
0
3
817

你看 C++ stl 都有 std::pair
android 还写了 android.util.Pair

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
刘奇

You can look at Entry<K,V>, which is actually similar to pair

阿神

std::pair acts as an element in std::map

Map.Entry also acts as an element in Map

This is the general idea

大家讲道理

Google’s Guava summarizes it well: Tuples for n >= 2

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template