Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Timerange.java @ 2217:54422e31dc27
Added new model classes which will be used during historical discharge curve calculation.
flys-artifacts/trunk@3856 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 01 Feb 2012 12:24:05 +0000 |
parents | |
children | 2e6f0ef36352 |
comparison
equal
deleted
inserted
replaced
2216:31fa7cae0f35 | 2217:54422e31dc27 |
---|---|
1 package de.intevation.flys.artifacts.model; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 | |
6 /** | |
7 * This class represents time ranges specified by start and end time. Start and | |
8 * end times are stored as long (number of milliseconds since january 1, 1970). | |
9 * | |
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
11 */ | |
12 public class Timerange implements Serializable { | |
13 | |
14 private long start; | |
15 private long end; | |
16 | |
17 | |
18 public Timerange(long start, long end) { | |
19 this.start = start; | |
20 this.end = end; | |
21 } | |
22 | |
23 | |
24 public long getStart() { | |
25 return start; | |
26 } | |
27 | |
28 | |
29 public long getEnd() { | |
30 return end; | |
31 } | |
32 } | |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |