Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/ImportRange.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 17db08570637 |
children | e541938dd3ab 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
85 return a; | 85 return a; |
86 } | 86 } |
87 | 87 |
88 public void setA(BigDecimal a) { | 88 public void setA(BigDecimal a) { |
89 if (this.b != null && a.compareTo(b) >= 0) { | 89 if (this.b != null && a.compareTo(b) >= 0) { |
90 throw new IllegalArgumentException("a (" + a + ") must be smaller than b (" + b + ")."); | 90 throw new IllegalArgumentException( |
91 "a (" + a + ") must be smaller than b (" + b + ")."); | |
91 } | 92 } |
92 this.a = a; | 93 this.a = a; |
93 } | 94 } |
94 | 95 |
95 public BigDecimal getB() { | 96 public BigDecimal getB() { |
96 return b; | 97 return b; |
97 } | 98 } |
98 | 99 |
99 public void setB(BigDecimal b) { | 100 public void setB(BigDecimal b) { |
100 if (b != null && b.compareTo(a) <= 0) { | 101 if (b != null && b.compareTo(a) <= 0) { |
101 throw new IllegalArgumentException("b (" + b + ") must be greater than a (" + a + ") or null."); | 102 throw new IllegalArgumentException( |
103 "b (" + b + ") must be greater than a (" + a + ") or null."); | |
102 } | 104 } |
103 this.b = b; | 105 this.b = b; |
104 } | 106 } |
105 | 107 |
106 public Range getPeer(River river) { | 108 public Range getPeer(River river) { |