/** * Returns a reversed version of the feature difference * * @return */ public FeatureDiff reversed() { Map<PropertyDescriptor, AttributeDiff> map = Maps.newHashMap(); Set<Entry<PropertyDescriptor, AttributeDiff>> entries = diffs.entrySet(); for (Iterator<Entry<PropertyDescriptor, AttributeDiff>> iterator = entries .iterator(); iterator.hasNext();) { Entry<PropertyDescriptor, AttributeDiff> entry = iterator.next(); map.put(entry.getKey(), entry.getValue().reversed()); } return new FeatureDiff(path, map, newFeatureType, oldFeatureType); }
/** * Returns a reversed version of the feature difference * * @return */ public FeatureDiff reversed() { Map<PropertyDescriptor, AttributeDiff> map = Maps.newHashMap(); Set<Entry<PropertyDescriptor, AttributeDiff>> entries = diffs.entrySet(); for (Iterator<Entry<PropertyDescriptor, AttributeDiff>> iterator = entries .iterator(); iterator.hasNext();) { Entry<PropertyDescriptor, AttributeDiff> entry = iterator.next(); map.put(entry.getKey(), entry.getValue().reversed()); } return new FeatureDiff(path, map, newFeatureType, oldFeatureType); }