@Ignore @Test public void mapSettingsToCategories() throws Exception { }
public static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories) { HashMap<Setting, Category> settingCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { if (group.getSettings() != null) { for (Setting setting : group.getSettings()) { settingCategoryMap.put(setting, category); } } } } } return settingCategoryMap; }
PreferencesFxUtils { public static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories) { HashMap<Setting, Category> settingCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { if (group.getSettings() != null) { for (Setting setting : group.getSettings()) { settingCategoryMap.put(setting, category); } } } } } return settingCategoryMap; } }
PreferencesFxUtils { public static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories) { HashMap<Setting, Category> settingCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { if (group.getSettings() != null) { for (Setting setting : group.getSettings()) { settingCategoryMap.put(setting, category); } } } } } return settingCategoryMap; }  }
PreferencesFxUtils { public static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories) { HashMap<Setting, Category> settingCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { if (group.getSettings() != null) { for (Setting setting : group.getSettings()) { settingCategoryMap.put(setting, category); } } } } } return settingCategoryMap; }  static List<Setting> categoriesToSettings(List<Category> categories); static List<Element> categoriesToElements(List<Category> categories); static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories); static HashMap<Group, Category> mapGroupsToCategories(List<Category> categories); static List<Category> filterCategoriesByDescription(List<Category> categories,
                                                             String description); static List<Setting> filterSettingsByDescription(List<Setting> settings,
                                                          String description); static List<Setting> groupsToSettings(List<Group> groups); static List<Group> filterGroupsByDescription(List<Group> groups, String description); static List<Group> categoriesToGroups(List<Category> categories); static int getRowCount(GridPane gridPane); static List<Category> flattenCategories(List<Category> categoryLst); }
PreferencesFxUtils { public static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories) { HashMap<Setting, Category> settingCategoryMap = new HashMap<>(); for (Category category : categories) { if (category.getGroups() != null) { for (Group group : category.getGroups()) { if (group.getSettings() != null) { for (Setting setting : group.getSettings()) { settingCategoryMap.put(setting, category); } } } } } return settingCategoryMap; }  static List<Setting> categoriesToSettings(List<Category> categories); static List<Element> categoriesToElements(List<Category> categories); static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories); static HashMap<Group, Category> mapGroupsToCategories(List<Category> categories); static List<Category> filterCategoriesByDescription(List<Category> categories,
                                                             String description); static List<Setting> filterSettingsByDescription(List<Setting> settings,
                                                          String description); static List<Setting> groupsToSettings(List<Group> groups); static List<Group> filterGroupsByDescription(List<Group> groups, String description); static List<Group> categoriesToGroups(List<Category> categories); static int getRowCount(GridPane gridPane); static List<Category> flattenCategories(List<Category> categoryLst);  }