summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
2e5e6f1)
Allowing code re-use by making things public
Fix for property change matching (for filtering)
gitlab #1
Change-Id: I40a1493ee7777f4e1ffbc820ca642878ae5b19ab
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
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;
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
/**
* Adds an user filter. Use refreshUserFilters() to apply the changes.
* @param filter
+ 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.
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);
continue;
if (lc.getFirst().equals(rc.getFirst())) {
comparable.map(lc, rc);
- private class FilterChangesRead implements Read<GraphChanges> {
+ public static class FilterChangesRead implements Read<GraphChanges> {
private GraphChanges changes;
private List<ChangeFilter> filters;
private GraphChanges changes;
private List<ChangeFilter> filters;
- * 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
* 2. Runs custom filters for value changes.
*
* @param g