- public UpdateList(GraphChanges graphChanges, Collection<Pair<Statement, Statement>> coll) {
- this.changes = new HashSet<>();
- for (Pair<Statement, Statement> p : coll) {
- changes.add(create(graphChanges, p));
+ public UpdateList(GraphChanges graphChanges, Collection<Modification> coll) {
+ this.changes = new ArrayList<>();
+ for (Modification p : coll) {
+ addChange(create(graphChanges, p.getLeftSub(),p.getRightSub(),new Pair<Statement, Statement>(p.getLeftStm(), p.getRightStm())));