org.apache.solr.common.util

## Class Pair<T1,T2>

- java.lang.Object
- - org.apache.solr.common.util.Pair<T1,T2>

- All Implemented Interfaces:
    Serializable

      public class Pair<T1,T2>
      extends Object
      implements Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Pair(T1 key, T2 value)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object that)`
    `T1` | `first()`
    `int` | `hashCode()`
    `T2` | `second()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Pair

          public Pair(T1 key,
                      T2 value)

  - ### Method Detail

    - #### first

          public T1 first()

    - #### second

          public T2 second()

    - #### equals

          public boolean equals(Object that)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.