Changeset 11061 in josm for trunk/src/org/openstreetmap/josm/data/correction
- Timestamp:
- 2016-09-27T20:47:19+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/correction/TagCorrection.java
r10125 r11061 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.correction; 3 4 import java.util.Objects; 3 5 4 6 /** … … 47 49 return !newValue.equals(oldValue); 48 50 } 51 52 @Override 53 public boolean equals(Object o) { 54 if (this == o) return true; 55 if (!(o instanceof TagCorrection)) return false; 56 TagCorrection that = (TagCorrection) o; 57 return Objects.equals(oldKey, that.oldKey) && 58 Objects.equals(newKey, that.newKey) && 59 Objects.equals(oldValue, that.oldValue) && 60 Objects.equals(newValue, that.newValue); 61 } 62 63 @Override 64 public int hashCode() { 65 return Objects.hash(oldKey, newKey, oldValue, newValue); 66 } 49 67 }
Note:
See TracChangeset
for help on using the changeset viewer.