Mercurial > dive4elements > river
changeset 6971:164e2f2c9bea
Make EpsilonComparator serializable.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 05 Sep 2013 19:05:00 +0200 |
parents | 7be97faf5848 |
children | 81f84960d722 |
files | backend/src/main/java/org/dive4elements/river/utils/EpsilonComparator.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/utils/EpsilonComparator.java Thu Sep 05 17:15:04 2013 +0200 +++ b/backend/src/main/java/org/dive4elements/river/utils/EpsilonComparator.java Thu Sep 05 19:05:00 2013 +0200 @@ -9,9 +9,10 @@ package org.dive4elements.river.utils; import java.util.Comparator; +import java.io.Serializable; /** Comparator with some tolerance (epsilon). */ -public class EpsilonComparator implements Comparator<Double> +public class EpsilonComparator implements Comparator<Double>, Serializable { public static final double EPSILON = 1e-4;