Changeset 13908 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2018-06-10T21:27:24+02:00 (15 months ago)
Author:
Don-vip
Message:

add IRelation.setMembers()

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
3 edited

Legend:

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

    r13766 r13908  
    2828     * Returns members of the relation.
    2929     * @return Members of the relation. Changes made in returned list are not mapped
    30      * back to the primitive, use setMembers() to modify the members
     30     * back to the primitive, use {@link #setMembers} to modify the members
    3131     * @since 1925
    3232     * @since 13766 (IRelation)
    3333     */
    3434    List<M> getMembers();
     35
     36    /**
     37     * Sets members of the relation.
     38     * @param members Can be null, in that case all members are removed
     39     */
     40    void setMembers(List<M> members);
    3541
    3642    /**
  • trunk/src/org/openstreetmap/josm/data/osm/Relation.java

    r13766 r13908  
    3737    }
    3838
    39     /**
    40      * Sets members of the relation.
    41      * @param members Can be null, in that case all members are removed
    42      * @since 1925
    43      */
     39    @Override
    4440    public void setMembers(List<RelationMember> members) {
    4541        checkDatasetNotReadOnly();
  • trunk/src/org/openstreetmap/josm/data/osm/RelationData.java

    r13766 r13908  
    4646    }
    4747
    48     /**
    49      * Sets relation members.
    50      * @param memberData relation members
    51      */
     48    @Override
    5249    public void setMembers(List<RelationMemberData> memberData) {
    5350        members = new ArrayList<>(memberData);
Note: See TracChangeset for help on using the changeset viewer.