Changeset 12190 in josm for trunk/src/org/openstreetmap/josm/data/osm/WayData.java
- Timestamp:
- 2017-05-16T00:01:44+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/WayData.java
r12017 r12190 3 3 4 4 import java.util.ArrayList; 5 import java.util.Collections; 5 6 import java.util.List; 6 7 7 8 import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor; 8 9 10 /** 11 * The data (tags and node ids) that is stored for a way in the database 12 */ 9 13 public class WayData extends PrimitiveData implements IWay { 10 14 … … 37 41 } 38 42 43 /** 44 * Gets a list of nodes the way consists of 45 * @return The ids of the nodes 46 */ 39 47 public List<Long> getNodes() { 40 return nodes;48 return Collections.unmodifiableList(nodes); 41 49 } 42 50 … … 57 65 } 58 66 67 /** 68 * Sets the nodes array 69 * @param nodes The nodes this way consists of 70 */ 59 71 public void setNodes(List<Long> nodes) { 60 72 this.nodes = new ArrayList<>(nodes);
Note:
See TracChangeset
for help on using the changeset viewer.