comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/FastCrossSectionChunk.java @ 6265:29d6cdcc7e38

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 11 Jun 2013 11:58:54 +0200
parents af13ceeba52a
children c297a61115d0
comparison
equal deleted inserted replaced
6263:f01dee3a39fc 6265:29d6cdcc7e38
51 log.debug("Fetching cross section lines took " + 51 log.debug("Fetching cross section lines took " +
52 (float)(stopTime-startTime)/1000f + " secs."); 52 (float)(stopTime-startTime)/1000f + " secs.");
53 } 53 }
54 } 54 }
55 55
56 /** Finds the FastCrossSectionLine at km (null if not found). */
56 public FastCrossSectionLine getCrossSectionLine(double km) { 57 public FastCrossSectionLine getCrossSectionLine(double km) {
57 FastCrossSectionLine key = new FastCrossSectionLine(km); 58 FastCrossSectionLine key = new FastCrossSectionLine(km);
58 int pos = Collections.binarySearch( 59 int pos = Collections.binarySearch(
59 crossSectionLines, key, FastCrossSectionLine.KM_CMP); 60 crossSectionLines, key, FastCrossSectionLine.KM_CMP);
60 return pos < 0 ? null : crossSectionLines.get(pos); 61 return pos < 0 ? null : crossSectionLines.get(pos);

http://dive4elements.wald.intevation.org