Changeset 10736 in josm for trunk/src/org/openstreetmap/josm/data/osm/TagMap.java
- Timestamp:
- 2016-08-05T20:02:23+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/TagMap.java
r10680 r10736 7 7 import java.util.ArrayList; 8 8 import java.util.Arrays; 9 import java.util.Collection; 9 10 import java.util.ConcurrentModificationException; 10 11 import java.util.Iterator; … … 151 152 } 152 153 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 153 165 @Override 154 166 public Set<Entry<String, String>> entrySet() {
Note:
See TracChangeset
for help on using the changeset viewer.