Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/ResultRow.java @ 9202:b4402594213b
More work on calculations and output for S-Info flood duration workflow (chart types 1 and 2)
author | mschaefer |
---|---|
date | Mon, 02 Jul 2018 07:33:53 +0200 |
parents | e3b3ce32c825 |
children |
comparison
equal
deleted
inserted
replaced
9201:491e1a434457 | 9202:b4402594213b |
---|---|
7 * and comes with ABSOLUTELY NO WARRANTY! Check out the | 7 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 package org.dive4elements.river.artifacts.common; | 10 package org.dive4elements.river.artifacts.common; |
11 | 11 |
12 import java.io.Serializable; | 12 import java.io.Serializable; |
13 import java.util.HashMap; | 13 import java.util.HashMap; |
14 import java.util.Map; | 14 import java.util.Map; |
15 | 15 |
16 import org.dive4elements.artifacts.CallContext; | 16 import org.dive4elements.artifacts.CallContext; |
17 import org.dive4elements.river.artifacts.common.IResultType; | |
18 | 17 |
19 /** | 18 /** |
20 * Generic container for results that come in rows. | 19 * Generic container for results that come in rows. |
21 * | 20 * |
22 * @author Gernot Belger | 21 * @author Gernot Belger |
23 */ | 22 */ |
24 public class ResultRow implements Serializable { | 23 public class ResultRow implements Serializable { |
25 protected static final long serialVersionUID = 1L; //TODO: Make private (wenn SInfoResultRow gelöscht ist | 24 private static final long serialVersionUID = 1L; |
26 | 25 |
27 private final Map<IResultType, Object> values = new HashMap<IResultType, Object>(); | 26 private final Map<IResultType, Object> values = new HashMap<>(); |
28 | 27 |
29 public static ResultRow create() { | 28 public static ResultRow create() { |
30 return new ResultRow(); | 29 return new ResultRow(); |
30 } | |
31 | |
32 public static ResultRow create(final ResultRow src) { | |
33 final ResultRow dst = create(); | |
34 dst.values.putAll(src.values); | |
35 return dst; | |
31 } | 36 } |
32 | 37 |
33 protected ResultRow() { | 38 protected ResultRow() { |
34 } | 39 } |
35 | 40 |