Class TagCorrection
- java.lang.Object
-
- org.openstreetmap.josm.data.correction.TagCorrection
-
- All Implemented Interfaces:
Correction
public class TagCorrection extends Object implements Correction
Represents a change of a single tag. Both key and value can be subject of this change.- Since:
- 729
-
-
Constructor Summary
Constructors Constructor Description TagCorrection(String oldKey, String oldValue, String newKey, String newValue)
Constructs a newTagCorrection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
boolean
isKeyChanged()
Determines if the key has changed.boolean
isValueChanged()
Determines if the value has changed.
-
-
-
Constructor Detail
-
TagCorrection
public TagCorrection(String oldKey, String oldValue, String newKey, String newValue)
Constructs a newTagCorrection
.- Parameters:
oldKey
- old keyoldValue
- old valuenewKey
- new keynewValue
- new value
-
-
Method Detail
-
isKeyChanged
public boolean isKeyChanged()
Determines if the key has changed.- Returns:
true
if the key has changed
-
isValueChanged
public boolean isValueChanged()
Determines if the value has changed.- Returns:
true
if the value has changed
-
-