comparison artifacts/src/main/java/org/dive4elements/river/utils/RiverUtils.java @ 8760:9483a5bf4219

Remove indirection via RiverUtils to obtain reference gauge and reduce casts.
author Tom Gottfried <tom@intevation.de>
date Fri, 26 Jun 2015 19:33:17 +0200
parents 26dedebbe39f
children a5e450af498b
comparison
equal deleted inserted replaced
8759:2faf6cef6f5f 8760:9483a5bf4219
439 * directly in new code. 439 * directly in new code.
440 * 440 *
441 * @param flys the artifact in question. 441 * @param flys the artifact in question.
442 * @return Reference / first gauge of locations of river of artifact. 442 * @return Reference / first gauge of locations of river of artifact.
443 */ 443 */
444 public static Gauge getGauge(D4EArtifact flys) { 444 private static Gauge getGauge(D4EArtifact flys) {
445 River river = getRiver(flys); 445 River river = getRiver(flys);
446 RangeAccess rangeAccess = new RangeAccess(flys); 446 RangeAccess rangeAccess = new RangeAccess(flys);
447 double[] dist = rangeAccess.getKmRange(); 447 double[] dist = rangeAccess.getKmRange();
448 448
449 return river.determineRefGauge(dist, rangeAccess.isRange()); 449 return river.determineRefGauge(dist, rangeAccess.isRange());

http://dive4elements.wald.intevation.org