comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/Segment.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 20a32dbdbb59
children 0c621beceb2f 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
60 60
61 public boolean isUp() { 61 public boolean isUp() {
62 return from < to; 62 return from < to;
63 } 63 }
64 64
65 /** Checks whether given km lies inside the to/from bounds of this segment. */ 65 /** Checks if given km lies inside the to/from bounds of this segment. */
66 public boolean inside(double km) { 66 public boolean inside(double km) {
67 return from < to 67 return from < to
68 ? km >= from && km <= to 68 ? km >= from && km <= to
69 : km >= to && km <= from; 69 : km >= to && km <= from;
70 } 70 }

http://dive4elements.wald.intevation.org