12 lines
252 B
Java
12 lines
252 B
Java
public class RealComparator implements TreeComparator<Float> {
|
|
|
|
public RealComparator() {}
|
|
|
|
@Override
|
|
public int compare(Float a, Float b) {
|
|
if (a > b) return 1;
|
|
else if (a < b) return -1;
|
|
else return 0;
|
|
}
|
|
}
|