Ignore:
Timestamp:
2017-05-16T00:01:44+02:00 (7 years ago)
Author:
michael2402
Message:

See #14794: More javadoc for data.osm package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/WayData.java

    r12017 r12190  
    33
    44import java.util.ArrayList;
     5import java.util.Collections;
    56import java.util.List;
    67
    78import org.openstreetmap.josm.data.osm.visitor.PrimitiveVisitor;
    89
     10/**
     11 * The data (tags and node ids) that is stored for a way in the database
     12 */
    913public class WayData extends PrimitiveData implements IWay {
    1014
     
    3741    }
    3842
     43    /**
     44     * Gets a list of nodes the way consists of
     45     * @return The ids of the nodes
     46     */
    3947    public List<Long> getNodes() {
    40         return nodes;
     48        return Collections.unmodifiableList(nodes);
    4149    }
    4250
     
    5765    }
    5866
     67    /**
     68     * Sets the nodes array
     69     * @param nodes The nodes this way consists of
     70     */
    5971    public void setNodes(List<Long> nodes) {
    6072        this.nodes = new ArrayList<>(nodes);
Note: See TracChangeset for help on using the changeset viewer.