source: josm/trunk/src/org/openstreetmap/josm/data/osm/WayData.java@ 3734

Last change on this file since 3734 was 3083, checked in by bastiK, 14 years ago

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 840 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import java.util.ArrayList;
5import java.util.List;
6
7public class WayData extends PrimitiveData {
8
9 private List<Long> nodes = new ArrayList<Long>();
10
11 public WayData() {
12
13 }
14
15 public WayData(WayData data) {
16 super(data);
17 nodes.addAll(data.getNodes());
18 }
19
20 public List<Long> getNodes() {
21 return nodes;
22 }
23
24 public void setNodes(List<Long> nodes) {
25 this.nodes = new ArrayList<Long>(nodes);
26 }
27
28 @Override
29 public WayData makeCopy() {
30 return new WayData(this);
31 }
32
33 @Override
34 public String toString() {
35 return super.toString() + " WAY" + nodes.toString();
36 }
37
38 @Override
39 public OsmPrimitiveType getType() {
40 return OsmPrimitiveType.WAY;
41 }
42}
Note: See TracBrowser for help on using the repository browser.