public void removeClassByName(ClassCollection collection, String classToRemove) { for (Class class1 : collection) { if (class1.getName().equals(classToRemove)) { collection.remove(class1); return; } } }
public void buildClasses(ClassCollection currentClasses, DeltaModule deltaToApply) { currentClasses.addAll(getCopyOfAddedClasses(deltaToApply)); removeClasses(currentClasses, deltaToApply); modifyClasses(currentClasses, deltaToApply); }