Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/model/Range.java @ 189:bc3747a371cc
First part of parsing main values.
flys-backend/trunk@1520 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 18 Mar 2011 16:12:24 +0000 |
parents | 003ac16812dd |
children | 3169b559ca3c |
comparison
equal
deleted
inserted
replaced
188:003ac16812dd | 189:bc3747a371cc |
---|---|
43 | 43 |
44 public void setId(Integer id) { | 44 public void setId(Integer id) { |
45 this.id = id; | 45 this.id = id; |
46 } | 46 } |
47 | 47 |
48 public Range(Double a, Double b, River river) { | |
49 this( | |
50 a != null ? BigDecimal.valueOf(a) : null, | |
51 b != null ? BigDecimal.valueOf(b) : null, | |
52 river); | |
53 } | |
54 | |
55 public Range(BigDecimal a, BigDecimal b, River river) { | 48 public Range(BigDecimal a, BigDecimal b, River river) { |
56 this.a = a; | 49 this.a = a; |
57 this.b = b; | 50 this.b = b; |
58 this.river = river; | 51 this.river = river; |
59 } | 52 } |