import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.Collections;
import java.util.Deque;
import java.util.List;
import java.util.Map.Entry;
}
+ public List<ChangeFilter> getFilters() {
+ return Collections.unmodifiableList(filters);
+ }
+
/**
* Adds an user filter. Use refreshUserFilters() to apply the changes.
* @param filter
userFilters.clear();
}
+ public List<ChangeFilter> getUserFilters() {
+ return userFilters;
+ }
+
public void refreshUserFilters() throws DatabaseException{
// use user filters to set visible flags of changes.
// First, set all changes visible.
continue;
if (lc.getFirst().equals(rc.getFirst())) {
comparable.map(lc, rc);
+ break;
}
}
}
- private class FilterChangesRead implements Read<GraphChanges> {
+ public static class FilterChangesRead implements Read<GraphChanges> {
private GraphChanges changes;
private List<ChangeFilter> filters;
/**
* Filters changes:
- * 1. Changes that are not essential for model update (changes that can be found when the models are axcatly the same)
+ * 1. Changes that are not essential for model update (changes that can be found when the models are exactly the same)
* 2. Runs custom filters for value changes.
*
* @param g