mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 06:06:11 +00:00
Merge branch 'master' into 'gwt25'
Conflicts: java/com.sap.sailing.gwt.ui/src/main/java/com/sap/sailing/gwt/ui/leaderboard/SortedCellTableWithStylableHeaders.java
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
package difflib;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
* @author mksenzov
|
||||
*/
|
||||
public class DeltaComparator<T> implements Comparator<Delta<T>>, Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public DeltaComparator() {
|
||||
}
|
||||
|
||||
public int compare(final Delta<T> a, final Delta<T> b) {
|
||||
final int posA = a.getOriginal().getPosition();
|
||||
final int posB = b.getOriginal().getPosition();
|
||||
if (posA > posB) {
|
||||
return 1;
|
||||
} else if (posA < posB) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
package difflib;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Comparator;
|
||||
|
||||
/**
|
||||
* @author mksenzov
|
||||
*/
|
||||
public class DeltaComparator<T> implements Comparator<Delta<T>>, Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public DeltaComparator() {
|
||||
}
|
||||
|
||||
public int compare(final Delta<T> a, final Delta<T> b) {
|
||||
final int posA = a.getOriginal().getPosition();
|
||||
final int posB = b.getOriginal().getPosition();
|
||||
if (posA > posB) {
|
||||
return 1;
|
||||
} else if (posA < posB) {
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user