Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/math/XYColumn.java @ 432:6a70e8883307
Added some type safety. Fixed z value bug in reading database preprocessing. Only dissemble WKT points if really needed.
gnv-artifacts/trunk@480 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 23 Dec 2009 09:45:40 +0000 |
parents | 422275fc9927 |
children | 828df3ddb758 |
comparison
equal
deleted
inserted
replaced
431:422275fc9927 | 432:6a70e8883307 |
---|---|
8 * @author Sascha L. Teichmann <sascha.teichmann@intevation.de> | 8 * @author Sascha L. Teichmann <sascha.teichmann@intevation.de> |
9 */ | 9 */ |
10 public class XYColumn | 10 public class XYColumn |
11 extends Point2d | 11 extends Point2d |
12 { | 12 { |
13 protected List values; | 13 protected List<HeightValue> values; |
14 | 14 |
15 public XYColumn() { | 15 public XYColumn() { |
16 } | 16 } |
17 | 17 |
18 public XYColumn(double x, double y, int i, int j) { | 18 public XYColumn(double x, double y, int i, int j) { |
19 super(x, y, i, j); | 19 super(x, y, i, j); |
20 } | 20 } |
21 | 21 |
22 public void add(HeightValue value) { | 22 public void add(HeightValue value) { |
23 if (values == null) { | 23 if (values == null) { |
24 values = new ArrayList(); | 24 values = new ArrayList<HeightValue>(); |
25 } | 25 } |
26 values.add(value); | 26 values.add(value); |
27 } | 27 } |
28 | 28 |
29 public HeightValue[] getValues() { | 29 public List<HeightValue> getValues() { |
30 return (HeightValue[]) values.toArray(new HeightValue[values.size()]); | 30 return values; |
31 } | 31 } |
32 } | 32 } |
33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: | 33 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |