Changeset 1611 in josm
- Timestamp:
- 2009-05-23T12:03:21+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r1598 r1611 175 175 176 176 public Node lastNode() { 177 if (incomplete ) return null;177 if (incomplete || nodes.size() == 0) return null; 178 178 return nodes.get(nodes.size()-1); 179 179 } 180 180 181 181 public Node firstNode() { 182 if (incomplete ) return null;182 if (incomplete || nodes.size() == 0) return null; 183 183 return nodes.get(0); 184 184 } 185 185 186 186 public boolean isFirstLastNode(Node n) { 187 if (incomplete ) return false;187 if (incomplete || nodes.size() == 0) return false; 188 188 return n == firstNode() || n == lastNode(); 189 189 }
Note:
See TracChangeset
for help on using the changeset viewer.