public void revert() { boolean delSuccess = adapter.deleteTargets(id.value); for (Target orig : original) { // FIX 24/01/12 Probably make the order of these arguments consistent. adapter.create(id.value, orig.number, orig.name); } }
public void update(final BasicContact contact) { boolean isDuplicate = adapter.contains(id.value, contact.number); if (!isDuplicate) { adapter.create(id.value, contact.number, contact.name); } }