类 Pair<K,​V>

  • 类型参数:
    K - type of first object
    V - type of second object
    所有已实现的接口:
    Serializable

    public class Pair<K,​V>
    extends Object
    implements Serializable
    Pair of objects
    作者:
    Chan Chung Kwong
    另请参阅:
    序列化表格
    • 构造器详细资料

      • Pair

        public Pair​(K key,
                    V value)
        Create a pair
        参数:
        key - the first object
        value - the second object
    • 方法详细资料

      • getKey

        public K getKey()
        返回:
        the first object
      • getValue

        public V getValue()
        返回:
        the second object
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object