adds.add(value);
return adds;
}
private int remove(int change, Collection listChanges, List list, int begin, int end) {
ListChange listChange = createListChange(ChangeKind.REMOVE_LITERAL, change, listChanges);
if (sequence(listChanges)) {
Collection removes = listChange.getFeatureMapEntryValues();
do {
FeatureMap.Entry fme = (FeatureMap.Entry) list.get(begin);
removes.add(changeFactory.createFeatureMapEntry(fme.getEStructuralFeature(), fme.getValue()));
} while (++begin != end);
return begin;
}
Collection removes = listChange.getValues();
do
removes.add(list.get(begin));
while (++begin != end);
return begin;
}