public interface SearchQueryResultContext<Q>
Modifier and Type | Method and Description |
---|---|
SearchQueryContext<Q> |
predicate(Function<? super SearchPredicateFactoryContext,SearchPredicateTerminalContext> predicateContributor)
Set the predicate for this query.
|
SearchQueryContext<Q> |
predicate(SearchPredicate predicate)
Set the predicate for this query.
|
SearchQueryContext<Q> predicate(SearchPredicate predicate)
predicate
- A SearchPredicate
object obtained from the search target.SearchQueryContext<Q> predicate(Function<? super SearchPredicateFactoryContext,SearchPredicateTerminalContext> predicateContributor)
predicateContributor
- A function that will use the DSL context passed in parameter to create a predicate,
returning the resulting terminal context.
Should generally be a lambda expression.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.