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