projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Make AltosFlightStatsTable neater
[fw/altos]
/
altoslib
/
AltosMapPathPoint.java
diff --git
a/altoslib/AltosMapPathPoint.java
b/altoslib/AltosMapPathPoint.java
index 9f82f02acd42d5c3a49f0bda80213a99fdc50437..5182ecfd6b21da1233bd337049a29c5212932ced 100644
(file)
--- a/
altoslib/AltosMapPathPoint.java
+++ b/
altoslib/AltosMapPathPoint.java
@@
-3,7
+3,8
@@
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-15,7
+16,7
@@
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-package org.altusmetrum.altoslib_
7
;
+package org.altusmetrum.altoslib_
11
;
import java.io.*;
import java.lang.Math;
import java.io.*;
import java.lang.Math;
@@
-26,10
+27,19
@@
public class AltosMapPathPoint {
public AltosLatLon lat_lon;
public int state;
public AltosLatLon lat_lon;
public int state;
- public boolean equals(AltosMapPathPoint other) {
- if (other == null)
+ public int hashCode() {
+ return lat_lon.hashCode() ^ state;
+ }
+
+ public boolean equals(Object o) {
+ if (o == null)
return false;
return false;
+ if (!(o instanceof AltosMapPathPoint))
+ return false;
+
+ AltosMapPathPoint other = (AltosMapPathPoint) o;
+
return lat_lon.equals(other.lat_lon) && state == other.state;
}
return lat_lon.equals(other.lat_lon) && state == other.state;
}