public Set<String> getSpecificVisibleCategories(Set<MapWidgetRegInfo> m) { Set<String> s = new LinkedHashSet<String>(); for (MapWidgetRegInfo ms : m) { if (ms.getCategory() != null) { s.add(ms.getCategory()); } } return s; }
public void fillAppearanceWidgets( Set<MapWidgetRegInfo> widgets, String category, ArrayList<Object> registry) { for (MapWidgetRegInfo w : widgets) { if (Algorithms.objectEquals(w.getCategory(), category)) { registry.add(w); } } }