Ignore:
Timestamp:
2016-08-05T20:02:23+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13271 - Make TagCollection count the occurence of tags (patch by michael2402) - gsoc-core

File:
1 edited

Legend:

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

    r10680 r10736  
    77import java.util.ArrayList;
    88import java.util.Arrays;
     9import java.util.Collection;
    910import java.util.ConcurrentModificationException;
    1011import java.util.Iterator;
     
    151152    }
    152153
     154    /**
     155     * Creates a new map using the given list of tags. For dupplicate keys the last value found is used.
     156     * @param tags The tags
     157     * @since 10736
     158     */
     159    public TagMap(Collection<Tag> tags) {
     160        for (Tag tag : tags) {
     161            put(tag.getKey(), tag.getValue());
     162        }
     163    }
     164
    153165    @Override
    154166    public Set<Entry<String, String>> entrySet() {
Note: See TracChangeset for help on using the changeset viewer.