package ds.util;
public
class K implements Comparable<K> {
public final int key;
public K(int k) {
key = k;
}
public static K mkK(int v) {
return
new K(v);
}
public int intValue() {
return
key;
}
public int compareTo(K k2) {
if (key == k2.key)
return 0;
if (key > k2.key)
return 1;
else
return -1;
}
public boolean equalTo(K k2) {
return
compareTo(k2) == 0;
}
public String toString() {
return "" + key;
}
public int hash() {
return
key;
}
}