comparison flys-aft/src/main/java/de/intevation/aft/TimeInterval.java @ 4736:b195fede1c3b

Remove trailing whitespace.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 02 Jan 2013 13:18:31 +0100
parents b6a18d706cbe
children
comparison
equal deleted inserted replaced
4735:94b39073f0f7 4736:b195fede1c3b
24 24
25 protected static int compare(Date d1, Date d2) { 25 protected static int compare(Date d1, Date d2) {
26 long s1 = d1 != null ? d1.getTime()/1000L : 0L; 26 long s1 = d1 != null ? d1.getTime()/1000L : 0L;
27 long s2 = d2 != null ? d2.getTime()/1000L : 0L; 27 long s2 = d2 != null ? d2.getTime()/1000L : 0L;
28 long diff = s1 - s2; 28 long diff = s1 - s2;
29 return diff < 0L 29 return diff < 0L
30 ? -1 30 ? -1
31 : diff > 0L ? 1 : 0; 31 : diff > 0L ? 1 : 0;
32 } 32 }
33 33
34 @Override 34 @Override
35 public int compareTo(TimeInterval other) { 35 public int compareTo(TimeInterval other) {
36 int cmp = compare(start, other.start); 36 int cmp = compare(start, other.start);
37 return cmp != 0 37 return cmp != 0
38 ? cmp 38 ? cmp
39 : compare(stop, other.stop); 39 : compare(stop, other.stop);
40 } 40 }
41 41
42 public int getId() { 42 public int getId() {

http://dive4elements.wald.intevation.org