[Dive4elements-commits] [PATCH 04 of 10] Range: Documentation
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 31 14:09:04 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351687564 -3600
# Node ID 048b3c3acd01d954d479b660e2d16cd364538c43
# Parent 2d3f8af87b7b53d3cf581a5aeb0e14152baa416c
Range: Documentation.
diff -r 2d3f8af87b7b -r 048b3c3acd01 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Range.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Range.java Wed Oct 31 13:45:14 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/Range.java Wed Oct 31 13:46:04 2012 +0100
@@ -2,6 +2,7 @@
import java.io.Serializable;
+/** A range from ... to .*/
public class Range implements Serializable {
public static final double EPSILON = 1e-5;
@@ -56,6 +57,7 @@
return true;
}
+ /** True if start>x<end (+ some epsilon) . */
public boolean inside(double x) {
return x > start-EPSILON && x < end+EPSILON;
}
More information about the Dive4elements-commits
mailing list