Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.corrector;
|
---|
3 |
|
---|
4 | public class TagCorrection implements Correction {
|
---|
5 |
|
---|
6 | public final String oldKey;
|
---|
7 | public final String newKey;
|
---|
8 | public final String oldValue;
|
---|
9 | public final String newValue;
|
---|
10 |
|
---|
11 | public TagCorrection(String oldKey, String oldValue, String newKey,
|
---|
12 | String newValue) {
|
---|
13 | this.oldKey = oldKey;
|
---|
14 | this.oldValue = oldValue;
|
---|
15 | this.newKey = newKey;
|
---|
16 | this.newValue = newValue;
|
---|
17 | }
|
---|
18 |
|
---|
19 | public boolean isKeyChanged() {
|
---|
20 | return !newKey.equals(oldKey);
|
---|
21 | }
|
---|
22 |
|
---|
23 | public boolean isValueChanged() {
|
---|
24 | return !newValue.equals(oldValue);
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.