[PATCH] Make EpsilonComparator serializable

Wald Commits scm-commit at wald.intevation.org
Thu Sep 5 19:05:11 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1378400700 -7200
# Node ID 164e2f2c9bea92d10d0ebc56505c44fa7c3a8b6e
# Parent  7be97faf5848583b1d97a01874ee4ed71a173cf2
Make EpsilonComparator serializable.

diff -r 7be97faf5848 -r 164e2f2c9bea backend/src/main/java/org/dive4elements/river/utils/EpsilonComparator.java
--- 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;
 


More information about the Dive4elements-commits mailing list