Changeset 13804 in josm
- Timestamp:
- 2018-05-21T16:45:01+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r13668 r13804 650 650 651 651 /** 652 * Returns true if the {@code key} corresponds to an OSM true value.653 * @param key OSM key654 * @return {@code true} if the {@code key} corresponds to an OSM true value655 * @see OsmUtils#isTrue(String)656 */657 public final boolean isKeyTrue(String key) {658 return OsmUtils.isTrue(get(key));659 }660 661 /**662 * Returns true if the {@code key} corresponds to an OSM false value.663 * @param key OSM key664 * @return {@code true} if the {@code key} corresponds to an OSM false value665 * @see OsmUtils#isFalse(String)666 */667 public final boolean isKeyFalse(String key) {668 return OsmUtils.isFalse(get(key));669 }670 671 /**672 652 * Gets a key ignoring the case of the key 673 653 * @param key The key to get -
trunk/src/org/openstreetmap/josm/data/osm/Tagged.java
r13668 r13804 199 199 */ 200 200 void removeAll(); 201 202 /** 203 * Returns true if the {@code key} corresponds to an OSM true value. 204 * @param key OSM key 205 * @return {@code true} if the {@code key} corresponds to an OSM true value 206 * @see OsmUtils#isTrue(String) 207 */ 208 default boolean isKeyTrue(String key) { 209 return OsmUtils.isTrue(get(key)); 210 } 211 212 /** 213 * Returns true if the {@code key} corresponds to an OSM false value. 214 * @param key OSM key 215 * @return {@code true} if the {@code key} corresponds to an OSM false value 216 * @see OsmUtils#isFalse(String) 217 */ 218 default boolean isKeyFalse(String key) { 219 return OsmUtils.isFalse(get(key)); 220 } 201 221 }
Note:
See TracChangeset
for help on using the changeset viewer.