public Vector<String> getMutatedFilePaths() { Vector<String> filepaths = new Vector<String>(); for (MutationObject obj : relevantObjects) { filepaths.add(obj.getPath()); } return filepaths; }
public MutationCase(Vector<Mutation> selectedMutations) { // identify relevant objects for (Mutation mut : selectedMutations) { MutationObject obj = mut.getObject(); if (!relevantObjects.contains(obj)) { relevantObjects.add(mut.getObject()); } } // for each relevant object perform mutations for (MutationObject obj : relevantObjects) { obj.mutate(selectedMutations, this); } }