public interface SearchPredicateFactoryExtensionIfSupportedStep
SearchPredicateFactory.SearchPredicateFactory.extension()| Modifier and Type | Method and Description |
|---|---|
<T> SearchPredicateFactoryExtensionIfSupportedMoreStep |
ifSupported(SearchPredicateFactoryExtension<T> extension,
Function<T,? extends PredicateFinalStep> predicateContributor)
If the given extension is supported, and none of the previous extensions passed to
ifSupported(SearchPredicateFactoryExtension, Function)
was supported, extend the current factory with this extension,
apply the given function to the extended factory, and store the resulting predicate for later retrieval. |
<T> SearchPredicateFactoryExtensionIfSupportedMoreStep ifSupported(SearchPredicateFactoryExtension<T> extension, Function<T,? extends PredicateFinalStep> predicateContributor)
ifSupported(SearchPredicateFactoryExtension, Function)
was supported, extend the current factory with this extension,
apply the given function to the extended factory, and store the resulting predicate for later retrieval.
This method cannot be called after SearchPredicateFactoryExtensionIfSupportedMoreStep.orElse(Function)
or SearchPredicateFactoryExtensionIfSupportedMoreStep.orElseFail().
T - The type of the extended factory.extension - The extension to apply.predicateContributor - A function called if the extension is successfully applied;
it will use the (extended) predicate factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.