Changeset 14231 in josm for trunk/src/org/openstreetmap/josm/data/osm
- Timestamp:
- 2018-09-08T20:20:58+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Changeset.java
r13625 r14231 43 43 /** the number of comments for this changeset */ 44 44 private int commentsCount; 45 /** the number of changes for this changeset */ 46 private int changesCount; 45 47 /** the map of tags */ 46 48 private Map<String, String> tags; … … 283 285 } 284 286 287 /** 288 * Replies the number of changes for this changeset. 289 * @return the number of changes for this changeset 290 * @since 14231 291 */ 292 public int getChangesCount() { 293 return changesCount; 294 } 295 296 /** 297 * Sets the number of changes for this changeset. 298 * @param changesCount the number of changes for this changeset 299 * @since 14231 300 */ 301 public void setChangesCount(int changesCount) { 302 this.changesCount = changesCount; 303 } 304 285 305 @Override 286 306 public Map<String, String> getKeys() { … … 346 366 */ 347 367 public boolean hasEqualSemanticAttributes(Changeset other) { 348 if (other == null) 349 return false; 350 if (closedAt == null) { 351 if (other.closedAt != null) 352 return false; 353 } else if (!closedAt.equals(other.closedAt)) 354 return false; 355 if (createdAt == null) { 356 if (other.createdAt != null) 357 return false; 358 } else if (!createdAt.equals(other.createdAt)) 359 return false; 360 if (id != other.id) 361 return false; 362 if (max == null) { 363 if (other.max != null) 364 return false; 365 } else if (!max.equals(other.max)) 366 return false; 367 if (min == null) { 368 if (other.min != null) 369 return false; 370 } else if (!min.equals(other.min)) 371 return false; 372 if (open != other.open) 373 return false; 374 if (!tags.equals(other.tags)) 375 return false; 376 if (user == null) { 377 if (other.user != null) 378 return false; 379 } else if (!user.equals(other.user)) 380 return false; 381 return commentsCount == other.commentsCount; 368 return other != null 369 && id == other.id 370 && open == other.open 371 && commentsCount == other.commentsCount 372 && changesCount == other.changesCount 373 && Objects.equals(closedAt, other.closedAt) 374 && Objects.equals(createdAt, other.createdAt) 375 && Objects.equals(min, other.min) 376 && Objects.equals(max, other.max) 377 && Objects.equals(tags, other.tags) 378 && Objects.equals(user, other.user); 382 379 } 383 380 … … 434 431 this.max = other.max; 435 432 this.commentsCount = other.commentsCount; 433 this.changesCount = other.changesCount; 436 434 this.tags = new HashMap<>(other.tags); 437 435 this.incomplete = other.incomplete;
Note:
See TracChangeset
for help on using the changeset viewer.