Changeset 13717 in josm for trunk/src/org/openstreetmap/josm/data/osm/WayData.java
- Timestamp:
- 2018-05-08T14:41:28+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/WayData.java
r12193 r13717 10 10 * The data (tags and node ids) that is stored for a way in the database 11 11 */ 12 public class WayData extends PrimitiveData implements IWay {12 public class WayData extends PrimitiveData implements IWay<NodeData> { 13 13 14 14 private static final long serialVersionUID = 106944939313286415L; … … 37 37 public WayData(WayData data) { 38 38 super(data); 39 nodes.addAll(data.getNode s());39 nodes.addAll(data.getNodeIds()); 40 40 } 41 41 42 /** 43 * Gets a list of nodes the way consists of 44 * @return The ids of the nodes 45 */ 46 public List<Long> getNodes() { 42 @Override 43 public List<NodeData> getNodes() { 44 throw new UnsupportedOperationException("Use getNodeIds() instead"); 45 } 46 47 @Override 48 public NodeData getNode(int index) { 49 throw new UnsupportedOperationException("Use getNodeId(int) instead"); 50 } 51 52 @Override 53 public List<Long> getNodeIds() { 47 54 return nodes; 48 55 }
Note:
See TracChangeset
for help on using the changeset viewer.