Changeset 34514 in osm for applications/editors/josm/plugins/globalsat/src/org/kaintoch
- Timestamp:
- 2018-08-18T17:50:45+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/GpsRec.java
r34120 r34514 69 69 70 70 @Override 71 public boolean equals(Object arg0) 72 { 73 boolean isEqual = false; 74 if (arg0 != null && arg0 instanceof GpsRec) 75 { 76 GpsRec otherGpsRec = (GpsRec)arg0; 77 isEqual = 78 dg100TypeOfNextRec == otherGpsRec.dg100TypeOfNextRec 79 && dg100TypeOfCurRec == otherGpsRec.dg100TypeOfCurRec 80 && dg100Latitude == otherGpsRec.dg100Latitude 81 && dg100Longitude == otherGpsRec.dg100Longitude 82 && dg100TimeZ == otherGpsRec.dg100TimeZ 83 && dg100Date == otherGpsRec.dg100Date 84 && dg100Speed == otherGpsRec.dg100Speed 85 && dg100Altitude == otherGpsRec.dg100Altitude 86 //&& dg100Unk1 == otherGpsRec.unk1 87 ; 88 } 89 return isEqual; 71 public int hashCode() { 72 final int prime = 31; 73 int result = 1; 74 result = prime * result + dg100Altitude; 75 result = prime * result + dg100Date; 76 result = prime * result + dg100Latitude; 77 result = prime * result + dg100Longitude; 78 result = prime * result + dg100Speed; 79 result = prime * result + dg100TimeZ; 80 result = prime * result + dg100TypeOfCurRec; 81 result = prime * result + dg100TypeOfNextRec; 82 return result; 83 } 84 85 @Override 86 public boolean equals(Object obj) { 87 if (this == obj) 88 return true; 89 if (obj == null || getClass() != obj.getClass()) 90 return false; 91 GpsRec other = (GpsRec) obj; 92 return dg100Altitude == other.dg100Altitude 93 && dg100Date == other.dg100Date 94 && dg100Latitude == other.dg100Latitude 95 && dg100Longitude == other.dg100Longitude 96 && dg100Speed == other.dg100Speed 97 && dg100TimeZ == other.dg100TimeZ 98 && dg100TypeOfCurRec == other.dg100TypeOfCurRec 99 && dg100TypeOfNextRec == other.dg100TypeOfNextRec; 90 100 } 91 101
Note:
See TracChangeset
for help on using the changeset viewer.