public class Pair
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
int |
key
key of the pair.
|
int |
value
value of the pair.
|
Constructor and Description |
---|
Pair()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o) |