Changeset 5684 in josm for trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java
- Timestamp:
- 2013-01-28T14:06:52+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/IWithAttributes.java
r5681 r5684 5 5 6 6 /** 7 * Object with attributes .7 * Object with attributes (in the context of GPX data). 8 8 */ 9 9 public interface IWithAttributes { 10 11 /** 12 * Returns the Object value to which the specified key is mapped, 13 * or {@code null} if this map contains no mapping for the key. 14 * 15 * @param key the key whose associated value is to be returned 16 * @return the value 17 */ 18 Object get(String key); 10 19 11 20 /** … … 18 27 */ 19 28 String getString(String key); 20 29 21 30 /** 22 * Returns the Collection value to which the specified key is mapped, 31 * Returns the Collection value to which the specified key is mapped, 23 32 * or {@code null} if this map contains no Collection mapping for the key. 24 * 33 * 25 34 * @param key the key whose associated value is to be returned 26 * @return the Collection value to which the specified key is mapped, 35 * @return the Collection value to which the specified key is mapped, 27 36 * or {@code null} if this map contains no Collection mapping for the key 28 37 * @since 5502 29 38 */ 30 Collection<?> getCollection(String key); 39 Collection getCollection(String key); 40 41 /** 42 * Put a key / value pair as a new attribute. 43 * 44 * Overrides key / value pair with the same key (if present). 45 * 46 * @param key the key 47 * @param value the value 48 */ 49 void put(String key, Object value); 50 51 /** 52 * Add a key / value pair that is not part of the GPX schema as an extension. 53 * 54 * @param key the key 55 * @param value the value 56 */ 57 void addExtension(String key, String value); 58 31 59 }
Note:
See TracChangeset
for help on using the changeset viewer.