net.i2p.router.sybil

## Class Pair

- java.lang.Object
- - net.i2p.router.sybil.Pair

- All Implemented Interfaces:
    Comparable<Pair>

      public class Pair
      extends Object
      implements Comparable<Pair>

  A pair of routers and the distance between them.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `BigInteger` | `dist`
    `RouterInfo` | `r1`
    `RouterInfo` | `r2`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Pair(RouterInfo ri1, RouterInfo ri2, BigInteger distance)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(Pair p)`

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### dist

          public final BigInteger dist

    - #### r1

          public final RouterInfo r1

    - #### r2

          public final RouterInfo r2

  - ### Constructor Detail

    - #### Pair

          public Pair(RouterInfo ri1,
                      RouterInfo ri2,
                      BigInteger distance)

  - ### Method Detail

    - #### compareTo

          public int compareTo(Pair p)

      Specified by:
        `compareTo` in interface `Comparable<Pair>`