Package ru.bitel.common.model

# Class Pair<T1,​T2>

java.lang.Object
ru.bitel.common.model.Pair<T1,​T2>

Type Parameters:
  `T1` - первый тип
  `T2` - второй тип

    public class Pair<T1,​T2>
    extends java.lang.Object

Класс "пара", его часто не хватает.

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `Pair()` |
  `Pair​(T1 first, T2 second)` |

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `boolean` | `equals​(java.lang.Object other)` |
  `T1` | `getFirst()` |
  `T2` | `getSecond()` |
  `int` | `hashCode()` |
  `void` | `setFirst​(T1 first)` |
  `void` | `setSecond​(T2 second)` |
  `java.lang.String` | `toString()` |

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

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

- ## Constructor Details

  - ### Pair

    public Pair()

  - ### Pair

    public Pair​(T1 first, T2 second)

- ## Method Details

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `java.lang.Object`

  - ### equals

    public boolean equals​(java.lang.Object other)
    Overrides:
      `equals` in class `java.lang.Object`

  - ### toString

    public java.lang.String toString()
    Overrides:
      `toString` in class `java.lang.Object`

  - ### getFirst

    public T1 getFirst()

  - ### setFirst

    public void setFirst​(T1 first)

  - ### getSecond

    public T2 getSecond()

  - ### setSecond

    public void setSecond​(T2 second)