/** * If the inventory configuration provided a {@link ResultFilter}, this calls it to tell whether provided element * is applicable. If the result filter is not provided by the configuration, true will always be returned. * * @param result the potential result to be checked for applicability in the result set * @return true or false (!!!) */ protected boolean isApplicable(AbstractElement<?, ?> result) { ResultFilter filter = context.configuration.getResultFilter(); return filter == null || filter.isApplicable(result); }
(p) -> context.configuration.getResultFilter().isApplicable(p.second);