comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Segment.java @ 5107:a929d9a9fa1e

Picky doc and whitespace fixes.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 26 Feb 2013 12:35:59 +0100
parents 1ddbf66a2b0a
children 842026a5a12c
comparison
equal deleted inserted replaced
5105:34baad34987f 5107:a929d9a9fa1e
51 51
52 public boolean isUp() { 52 public boolean isUp() {
53 return from < to; 53 return from < to;
54 } 54 }
55 55
56 /** Checks whether given km lies inside the to/from bounds of this segment. */
56 public boolean inside(double km) { 57 public boolean inside(double km) {
57 return from < to 58 return from < to
58 ? km >= from && km <= to 59 ? km >= from && km <= to
59 : km >= to && km <= from; 60 : km >= to && km <= from;
60 } 61 }
118 119
119 public double getReferencePoint() { 120 public double getReferencePoint() {
120 return referencePoint; 121 return referencePoint;
121 } 122 }
122 123
124 /** Use DoubleUtil to parse Segments. */
123 public static List<Segment> parseSegments(String input) { 125 public static List<Segment> parseSegments(String input) {
124 126
125 final List<Segment> segments = new ArrayList<Segment>(); 127 final List<Segment> segments = new ArrayList<Segment>();
126 128
127 DoubleUtil.parseSegments(input, new DoubleUtil.SegmentCallback() { 129 DoubleUtil.parseSegments(input, new DoubleUtil.SegmentCallback() {

http://dive4elements.wald.intevation.org