comparison flys-aft/src/main/java/de/intevation/aft/TimeInterval.java @ 4090:d556e29592f5

Create new discharge tables if needed. flys-aft/trunk@3590 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 04 Jan 2012 17:59:26 +0000
parents 859b4781554a
children b6a18d706cbe
comparison
equal deleted inserted replaced
4089:859b4781554a 4090:d556e29592f5
10 protected Date stop; 10 protected Date stop;
11 11
12 public TimeInterval() { 12 public TimeInterval() {
13 } 13 }
14 14
15 public TimeInterval(int id, Date start, Date stop) { 15 public TimeInterval(Date start, Date stop) {
16 this.id = id;
17 this.start = start; 16 this.start = start;
18 this.stop = stop; 17 this.stop = stop;
18 }
19
20 public TimeInterval(int id, Date start, Date stop) {
21 this(start, stop);
22 this.id = id;
19 } 23 }
20 24
21 protected static int compare(Date d1, Date d2) { 25 protected static int compare(Date d1, Date d2) {
22 long s1 = d1 != null ? d1.getTime()/1000L : 0L; 26 long s1 = d1 != null ? d1.getTime()/1000L : 0L;
23 long s2 = d2 != null ? d2.getTime()/1000L : 0L; 27 long s2 = d2 != null ? d2.getTime()/1000L : 0L;

http://dive4elements.wald.intevation.org