Ignore:
Timestamp:
2016-01-27T17:02:17+01:00 (8 years ago)
Author:
bastiK
Message:

applied #12355 - add a new TagMap as Set<String, String> (patch by michael2402)

File:
1 edited

Legend:

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

    r9545 r9649  
    55import java.util.Collections;
    66import java.util.Map;
     7import java.util.Map.Entry;
    78import java.util.Objects;
    89
     
    1819 * the modifying methods throw an {@link UnsupportedOperationException}.
    1920 */
    20 public class Tag implements Tagged {
     21public class Tag implements Tagged, Entry<String, String> {
    2122
    2223    private final String key;
     
    6667     * @return the key of the tag
    6768     */
     69    @Override
    6870    public String getKey() {
    6971        return key;
     
    7577     * @return the value of the tag
    7678     */
     79    @Override
    7780    public String getValue() {
    7881        return value;
     82    }
     83
     84    /**
     85     * This is not supported by this implementation.
     86     * @param value ignored
     87     * @return (Does not return)
     88     * @throws UnsupportedOperationException always
     89     */
     90    @Override
     91    public String setValue(String value) {
     92        throw new UnsupportedOperationException();
    7993    }
    8094
Note: See TracChangeset for help on using the changeset viewer.