public Filter getFilter(String string) { for (Filter filter : filters) { String name = filter.getName(); if (filter.getName() != null && name.equalsIgnoreCase(string)) return filter; } return null; }
private String filter(Filter filter) { return filter.getName() + ": " + filter.getClass().getSimpleName(); }