Package 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.- Since:
- 0.9.38 moved from SybilRenderer
-
-
Field Summary
Fields Modifier and Type Field Description BigInteger
dist
RouterInfo
r1
RouterInfo
r2
-
Constructor Summary
Constructors Constructor Description Pair(RouterInfo ri1, RouterInfo ri2, BigInteger distance)
-
-
-
Field Detail
-
r1
public final RouterInfo r1
-
r2
public final RouterInfo r2
-
dist
public final BigInteger dist
-
-
Constructor Detail
-
Pair
public Pair(RouterInfo ri1, RouterInfo ri2, BigInteger distance)
-
-
Method Detail
-
compareTo
public int compareTo(Pair p)
- Specified by:
compareTo
in interfaceComparable<Pair>
-
-