Changeset 1934 in josm for trunk/src


Ignore:
Timestamp:
2009-08-08T14:20:02+02:00 (15 years ago)
Author:
Gubaer
Message:

added some javadoc

File:
1 edited

Legend:

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

    r1923 r1934  
    5555
    5656    /**
    57      *
    58      * @return
     57     * Replies the number of nodes in this ways.
     58     *
     59     * @return the number of nodes in this ways.
    5960     * @since 1862
    6061     */
     
    6465
    6566    /**
    66      *
    67      * @param index
    68      * @return
     67     * Replies the node at position <code>index</code>.
     68     *
     69     * @param index the position
     70     * @return  the node at position <code>index</code>
     71     * @exception IndexOutOfBoundsException thrown if <code>index</code> < 0
     72     * or <code>index</code> >= {@see #getNodesCount()}
    6973     * @since 1862
    7074     */
     
    129133
    130134    /**
    131      * Create an identical clone of the argument (including the id)
    132      */
    133     public Way(Way clone) {
    134         cloneFrom(clone);
     135     * Create an identical clone of the argument (including the id).
     136     *
     137     * @param original  the original way. Must not be null.
     138     */
     139    public Way(Way original) {
     140        cloneFrom(original);
    135141    }
    136142
     
    143149
    144150    /**
    145      * Create an incomplete Way.
     151     * Create an incomplete Way with a given id.
     152     *
     153     * @param id  the id. id > 0 required.
    146154     */
    147155    public Way(long id) {
     156        // FIXME: shouldn't we check for id > 0?
     157        //
    148158        this.id = id;
    149159        incomplete = true;
Note: See TracChangeset for help on using the changeset viewer.