in common/src/main/java/org/apache/flink/training/exercises/common/datatypes/TaxiRide.java [131:149]
public int compareTo(@Nullable TaxiRide other) {
if (other == null) {
return 1;
}
int compareTimes = this.eventTime.compareTo(other.eventTime);
if (compareTimes == 0) {
if (this.isStart == other.isStart) {
return 0;
} else {
if (this.isStart) {
return -1;
} else {
return 1;
}
}
} else {
return compareTimes;
}
}