/** * Return true if the value matches an include filter if specified and does not match an exclude filter */ public static <T> boolean matches(T value, List<? extends Filter<T>> includeFilters, List<? extends Filter<T>> excludeFilters) { if (matches(value, excludeFilters)) { return false; } return includeFilters == null || includeFilters.isEmpty() || Filters.matches(value, includeFilters); }