package ds.util;
public
class E implements Comparable<E> {
private int value;
private E(int v) {
value = v;
}
public int compareTo(E e2) {
if (value == e2.value)
return 0;
if (value > e2.value)
return 1;
else
return -1;
}
public boolean equalTo(E e2) {
return
compareTo(e2) == 0;
}
public String toString() {
return
"" + value;
}
public static E mkE(int v) {
return
new E(v);
}
}