/** * @param filter * @return whether the filter is valid (with or without a trailing .*) */ public boolean checkFilter(String filter) { for (int i = 0; i < categories.size(); i++) { if (Log.checkFilterToCategory((String)filter, (String)categories.get(i))) { return true; } } return false; }
/** * Check if any categories match with the filter (the filter is valid or not). * @param filter the filter string to check * @return whether the filter is valid (with or without a trailing .*) */ public boolean checkFilter(String filter) { for (int i = 0; i < categories.size(); i++) { if (Log.checkFilterToCategory((String)filter, (String)categories.get(i))) { return true; } } return false; }
/** * Check if any categories match with the filter (the filter is valid or not). * @param filter the filter string to check * @return whether the filter is valid (with or without a trailing .*) */ public boolean checkFilter(String filter) { for (int i = 0; i < categories.size(); i++) { if (Log.checkFilterToCategory((String)filter, (String)categories.get(i))) { return true; } } return false; }
/** * This method checks that the specified category matches any of the filter * expressions provided in the filters array. * * @param category to match against * @param filters - list of strings to check category against. * @return <code>true</code> if the specified category matches any of the * filter expressions found in the filters list, <code>false</code> * otherwise. */ private static boolean categoryMatchInFilterList(String category, List filters) { if (filters == null) return false; for (int i = 0; i < filters.size(); i++) { String filter = (String) filters.get(i); // match category to filter based on the presence of a wildcard if (checkFilterToCategory(filter,category)) return true; } return false; }
/** * This method checks that the specified category matches any of the filter * expressions provided in the filters array. * * @param category to match against * @param filters - list of strings to check category against. * @return <code>true</code> if the specified category matches any of the * filter expressions found in the filters list, <code>false</code> * otherwise. */ private static boolean categoryMatchInFilterList(String category, List filters) { if (filters == null) return false; for (int i = 0; i < filters.size(); i++) { String filter = (String)filters.get(i); // match category to filter based on the presense of a wildcard if (checkFilterToCategory(filter,category)) return true; } return false; }
/** * This method checks that the specified category matches any of the filter * expressions provided in the filters array. * * @param category to match against * @param filters - list of strings to check category against. * @return <code>true</code> if the specified category matches any of the * filter expressions found in the filters list, <code>false</code> * otherwise. */ private static boolean categoryMatchInFilterList(String category, List filters) { if (filters == null) return false; for (int i = 0; i < filters.size(); i++) { String filter = (String) filters.get(i); // match category to filter based on the presence of a wildcard if (checkFilterToCategory(filter,category)) return true; } return false; }