Changeset 14209 in josm for trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
- Timestamp:
- 2018-08-31T21:59:54+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r14205 r14209 5 5 import java.io.IOException; 6 6 import java.util.Date; 7 import java.util.Objects; 7 8 8 9 import org.openstreetmap.josm.data.coor.CachedLatLon; … … 332 333 } 333 334 335 @Override 336 public int hashCode() { 337 return Objects.hash(height, width, isNewGpsData, 338 elevation, exifCoor, exifGpsTime, exifImgDir, exifOrientation, exifTime, 339 file, gpsTime, pos, speed, tmp); 340 } 341 342 @Override 343 public boolean equals(Object obj) { 344 if (this == obj) 345 return true; 346 if (obj == null || getClass() != obj.getClass()) 347 return false; 348 GpxImageEntry other = (GpxImageEntry) obj; 349 return height == other.height 350 && width == other.width 351 && isNewGpsData == other.isNewGpsData 352 && Objects.equals(elevation, other.elevation) 353 && Objects.equals(exifCoor, other.exifCoor) 354 && Objects.equals(exifGpsTime, other.exifGpsTime) 355 && Objects.equals(exifImgDir, other.exifImgDir) 356 && Objects.equals(exifOrientation, other.exifOrientation) 357 && Objects.equals(exifTime, other.exifTime) 358 && Objects.equals(file, other.file) 359 && Objects.equals(gpsTime, other.gpsTime) 360 && Objects.equals(pos, other.pos) 361 && Objects.equals(speed, other.speed) 362 && Objects.equals(tmp, other.tmp); 363 } 364 334 365 /** 335 366 * Make a fresh copy and save it in the temporary variable. Use
Note:
See TracChangeset
for help on using the changeset viewer.