Changeset 203 in josm for src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
- Timestamp:
- 2007-02-17T17:09:49+01:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r194 r203 166 166 /** 167 167 * Perform an equality compare for all non-volatile fields not only for the id 168 * but for the whole object (for conflict resolving etc) 168 * but for the whole object (for conflict resolving) 169 * @param semanticOnly if <code>true</code>, modified flag and timestamp are not compared 169 170 */ 170 public boolean realEqual(OsmPrimitive osm) { 171 public boolean realEqual(OsmPrimitive osm, boolean semanticOnly) { 171 172 return 172 id == osm.id && 173 modified == osm.modified && 174 deleted == osm.deleted && 175 (timestamp == null ? osm.timestamp==null : timestamp.equals(osm.timestamp)) && 176 (keys == null ? osm.keys==null : keys.equals(osm.keys)); 173 id == osm.id && 174 (semanticOnly || (modified == osm.modified)) && 175 deleted == osm.deleted && 176 (semanticOnly || (timestamp == null ? osm.timestamp==null : timestamp.equals(osm.timestamp))) && 177 (keys == null ? osm.keys==null : keys.equals(osm.keys)); 177 178 } 178 179
Note:
See TracChangeset
for help on using the changeset viewer.
