Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ValueKey.java @ 771:6dc847194625
Removed trailing whitespace.
flys-backend/trunk@2241 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 26 Jun 2011 17:13:53 +0000 |
parents | bcc18293a547 |
children |
comparison
equal
deleted
inserted
replaced
770:33a79496ba9e | 771:6dc847194625 |
---|---|
7 public class ValueKey | 7 public class ValueKey |
8 { | 8 { |
9 public static final double EPSILON = 1e-6; | 9 public static final double EPSILON = 1e-6; |
10 | 10 |
11 public static final Comparator<ValueKey> EPSILON_COMPARATOR = | 11 public static final Comparator<ValueKey> EPSILON_COMPARATOR = |
12 new Comparator<ValueKey>() | 12 new Comparator<ValueKey>() |
13 { | 13 { |
14 public int compare(ValueKey x, ValueKey y) { | 14 public int compare(ValueKey x, ValueKey y) { |
15 int cmp = ValueKey.compare(x.a, y.a); | 15 int cmp = ValueKey.compare(x.a, y.a); |
16 if (cmp != 0) return cmp; | 16 if (cmp != 0) return cmp; |
17 return ValueKey.compare(x.b, y.b); | 17 return ValueKey.compare(x.b, y.b); |
50 if (!(other instanceof ValueKey)) { | 50 if (!(other instanceof ValueKey)) { |
51 return false; | 51 return false; |
52 } | 52 } |
53 ValueKey o = (ValueKey)other; | 53 ValueKey o = (ValueKey)other; |
54 return !( | 54 return !( |
55 (a == null && o.a != null) | 55 (a == null && o.a != null) |
56 || (a != null && o.a == null) | 56 || (a != null && o.a == null) |
57 || (a != null && !a.equals(o.a)) | 57 || (a != null && !a.equals(o.a)) |
58 || (b == null && o.b != null) | 58 || (b == null && o.b != null) |
59 || (b != null && o.b == null) | 59 || (b != null && o.b == null) |
60 || (b != null && !b.equals(o.b))); | 60 || (b != null && !b.equals(o.b))); |
61 } | 61 } |
62 } | 62 } |
63 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 63 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |