Changeset 18014 in josm for trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
- Timestamp:
- 2021-07-13T23:56:50+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java
r17880 r18014 228 228 * Returns EXIF time 229 229 * @return EXIF time 230 * @deprecated Use {@link #getExifInstant} 231 */ 232 @Deprecated 233 public Date getExifTime() { 234 return getDefensiveDate(exifTime); 235 } 236 237 /** 238 * Returns EXIF time 239 * @return EXIF time 230 * @since 17715 240 231 */ 241 232 public Instant getExifInstant() { … … 266 257 * Returns the EXIF GPS time. 267 258 * @return the EXIF GPS time 259 * @since 17715 268 260 */ 269 261 public Instant getExifGpsInstant() { … … 365 357 * Sets EXIF time. 366 358 * @param exifTime EXIF time 367 * @deprecated Use {@link #setExifTime(Instant)} 368 */ 369 @Deprecated 370 public void setExifTime(Date exifTime) { 371 this.exifTime = exifTime == null ? null : exifTime.toInstant(); 359 * @since 17715 360 */ 361 public void setExifTime(Instant exifTime) { 362 this.exifTime = exifTime; 372 363 } 373 364 … … 375 366 * Sets the EXIF GPS time. 376 367 * @param exifGpsTime the EXIF GPS time 377 * @since 6392 378 * @deprecated Use {@link #setExifGpsTime(Instant)} 379 */ 380 @Deprecated 381 public void setExifGpsTime(Date exifGpsTime) { 382 this.exifGpsTime = exifGpsTime == null ? null : exifGpsTime.toInstant(); 368 * @since 17715 369 */ 370 public void setExifGpsTime(Instant exifGpsTime) { 371 this.exifGpsTime = exifGpsTime; 383 372 } 384 373 … … 386 375 * Sets the GPS time. 387 376 * @param gpsTime the GPS time 388 * @deprecated Use {@link #setGpsTime(Instant)} 389 */ 390 @Deprecated 391 public void setGpsTime(Date gpsTime) { 392 this.gpsTime = gpsTime == null ? null : gpsTime.toInstant(); 393 } 394 395 /** 396 * Sets EXIF time. 397 * @param exifTime EXIF time 398 */ 399 public void setExifTime(Instant exifTime) { 400 this.exifTime = exifTime; 401 } 402 403 /** 404 * Sets the EXIF GPS time. 405 * @param exifGpsTime the EXIF GPS time 406 */ 407 public void setExifGpsTime(Instant exifGpsTime) { 408 this.exifGpsTime = exifGpsTime; 409 } 410 411 /** 412 * Sets the GPS time. 413 * @param gpsTime the GPS time 377 * @since 17715 414 378 */ 415 379 public void setGpsTime(Instant gpsTime) {
Note:
See TracChangeset
for help on using the changeset viewer.