[PATCH 11 of 12] issue1542: WQInfoObjectImpl: Changed implementation from String to Date

Wald Commits scm-commit at wald.intevation.org
Tue Nov 12 17:18:50 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1384272892 -3600
# Node ID 56480f609a340d57cbed5ac8fb47826dc4544cd5
# Parent  4a3f1599c0bb6714c36142188bbf253b33b331d3
issue1542: WQInfoObjectImpl: Changed implementation from String to Date.

diff -r 4a3f1599c0bb -r 56480f609a34 gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java	Tue Nov 12 17:14:24 2013 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoObjectImpl.java	Tue Nov 12 17:14:52 2013 +0100
@@ -8,6 +8,7 @@
 
 package org.dive4elements.river.client.shared.model;
 
+import java.util.Date;
 
 /**
  * @author <a href="mailto:raimund.renkert at intevation.de">Raimund Renkert</a>
@@ -20,9 +21,9 @@
 
     protected Double value;
 
-    protected String startTime;
+    Date startTime;
 
-    protected String stopTime;
+    Date stopTime;
 
     protected boolean isOfficial;
 
@@ -36,8 +37,8 @@
         String type,
         Double value,
         boolean isOfficial,
-        String startTime,
-        String stopTime
+        Date startTime,
+        Date stopTime
     ) {
         this.name  = name;
         this.type  = type;
@@ -49,12 +50,12 @@
 
 
     @Override
-    public String getStopTime() {
+    public Date getStopTime() {
         return stopTime;
     }
 
     @Override
-    public String getStartTime() {
+    public Date getStartTime() {
         return startTime;
     }
 


More information about the Dive4elements-commits mailing list