public class Euro
implements Ordering<Euro> {
private double value;
public
boolean isEqual(Euro x2) {
return value == x2.value;
}
public
boolean isNotEqual(Euro x2) {
return ! isEqual(x2);
}
public
boolean isGreater(Euro x2) {
return value > x2.value;
}
public
boolean isGreaterOrEqual(Euro x2) {
return value >= x2.value;
}
public
boolean isLessThan(Euro x2) {
return value < x2.value;
}
public
boolean isLessOrEqual(Euro x2) {
return value <= x2.value;
}
}