Changeset 12378 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/Range.java
- Timestamp:
- 2017-06-09T22:13:45+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/Range.java
r11370 r12378 13 13 private final double upper; 14 14 15 /** 16 * The full scale range from zero to infinity 17 */ 15 18 public static final Range ZERO_TO_INFINITY = new Range(0.0, Double.POSITIVE_INFINITY); 16 19 … … 28 31 } 29 32 33 /** 34 * Check if a number is contained in this range 35 * @param x The number to test 36 * @return <code>true</code> if it is in this range 37 */ 30 38 public boolean contains(double x) { 31 39 return lower < x && x <= upper; … … 76 84 } 77 85 86 /** 87 * Gets the lower bound 88 * @return The lower, exclusive, bound 89 */ 78 90 public double getLower() { 79 91 return lower; 80 92 } 81 93 94 /** 95 * Gets the upper bound 96 * @return The upper, inclusive, bound 97 */ 82 98 public double getUpper() { 83 99 return upper;
Note:
See TracChangeset
for help on using the changeset viewer.