diff flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java @ 4742:ce6b9945bf8e

Doc.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 28 Dec 2012 15:03:55 +0100
parents flys-backend/src/main/java/de/intevation/flys/importer/parsers/tim/EpsilonComparator.java@7fdddc6ba296
children
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java	Wed Jan 02 15:42:22 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/utils/EpsilonComparator.java	Fri Dec 28 15:03:55 2012 +0100
@@ -2,10 +2,12 @@
 
 import java.util.Comparator;
 
+/** Comparator with some tolerance (epsilon). */
 public class EpsilonComparator implements Comparator<Double>
 {
     public static final double EPSILON = 1e-4;
 
+    /** Ready-made comparator with 1e-4 tolerance. */
     public static final EpsilonComparator CMP = new EpsilonComparator(EPSILON);
 
     private double epsilon;

http://dive4elements.wald.intevation.org