public interface SearchPredicateFactoryExtensionIfSupportedMoreStep extends SearchPredicateFactoryExtensionIfSupportedStep
SearchPredicateFactory.SearchPredicateFactory.extension()| Modifier and Type | Method and Description |
|---|---|
PredicateFinalStep |
orElse(Function<SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)
If no extension passed to
SearchPredicateFactoryExtensionIfSupportedStep.ifSupported(SearchPredicateFactoryExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactory;
otherwise return the predicate created in the first succeeding ifSupported call. |
PredicateFinalStep |
orElseFail()
If no extension passed to
SearchPredicateFactoryExtensionIfSupportedStep.ifSupported(SearchPredicateFactoryExtension, Function)
was supported so far, throw an exception;
otherwise return the predicate created in the first succeeding ifSupported call. |
ifSupportedPredicateFinalStep orElse(Function<SearchPredicateFactory,? extends PredicateFinalStep> predicateContributor)
SearchPredicateFactoryExtensionIfSupportedStep.ifSupported(SearchPredicateFactoryExtension, Function)
was supported so far, apply the given consumer to the current (non-extended) SearchPredicateFactory;
otherwise return the predicate created in the first succeeding ifSupported call.predicateContributor - A function called if no extension was successfully applied;
it will use the (non-extended) predicate factory passed in parameter to create a predicate,
returning the final step in the predicate DSL.
Should generally be a lambda expression.PredicateFinalStep orElseFail()
SearchPredicateFactoryExtensionIfSupportedStep.ifSupported(SearchPredicateFactoryExtension, Function)
was supported so far, throw an exception;
otherwise return the predicate created in the first succeeding ifSupported call.SearchException - If none of the previously passed extensions was supported.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.