Changeset 13564 in josm for trunk/src/org/openstreetmap/josm/data/osm/Way.java
- Timestamp:
- 2018-03-25T18:53:04+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r13512 r13564 105 105 106 106 /** 107 * Replies the real number of nodes in this way (full number of nodes minus one if this way is closed)108 *109 * @return the real number of nodes in this way.110 *111 * @see #getNodesCount()112 * @see #isClosed()113 * @since 5847114 */115 public int getRealNodesCount() {116 int count = getNodesCount();117 return isClosed() ? count-1 : count;118 }119 120 /**121 107 * Replies the node at position <code>index</code>. 122 108 * … … 576 562 } 577 563 return false; 578 }579 580 @Override581 public String getDisplayName(NameFormatter formatter) {582 return formatter.format(this);583 564 } 584 565
Note:
See TracChangeset
for help on using the changeset viewer.