Interface GenericSimpleBooleanPredicateClausesStep<SR,S extends C,C extends SimpleBooleanPredicateClausesCollector<SR,?>>
- Type Parameters:
SR- Scope root type.S- The "self" type (the actual exposed type of this collector).C- The "collector" type (the type of collector passed to the consumer inwith(Consumer)).
- All Superinterfaces:
PredicateFinalStep,SimpleBooleanPredicateClausesCollector<SR,C>
- All Known Subinterfaces:
NestedPredicateClausesStep<SR,,S> SimpleBooleanPredicateClausesStep<SR,S>
public interface GenericSimpleBooleanPredicateClausesStep<SR,S extends C,C extends SimpleBooleanPredicateClausesCollector<SR,?>>
extends SimpleBooleanPredicateClausesCollector<SR,C>, PredicateFinalStep
A generic superinterface for "simple boolean predicate" DSL steps that involve collecting
clauses.
See also PredicateScoreStep or PredicateFinalStep.
-
Method Summary
Modifier and TypeMethodDescriptionadd(Function<? super TypedSearchPredicateFactory<SR>, ? extends PredicateFinalStep> clauseContributor) Adds a clause to be defined by the given function.default Sadd(PredicateFinalStep searchPredicate) Adds the specified predicate to the list of clauses.add(SearchPredicate searchPredicate) Adds the specified previously-builtSearchPredicateto the list of clauses.Delegates setting clauses and options to a given consumer.Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicateMethods inherited from interface org.hibernate.search.engine.search.predicate.dsl.SimpleBooleanPredicateClausesCollector
hasClause
-
Method Details
-
add
Description copied from interface:SimpleBooleanPredicateClausesCollectorAdds the specified predicate to the list of clauses.- Specified by:
addin interfaceSimpleBooleanPredicateClausesCollector<SR,S extends C> - Returns:
this, for method chaining.
-
add
Description copied from interface:SimpleBooleanPredicateClausesCollectorAdds the specified previously-builtSearchPredicateto the list of clauses.- Specified by:
addin interfaceSimpleBooleanPredicateClausesCollector<SR,S extends C> - Returns:
this, for method chaining.
-
add
S add(Function<? super TypedSearchPredicateFactory<SR>, ? extends PredicateFinalStep> clauseContributor) Description copied from interface:SimpleBooleanPredicateClausesCollectorAdds a clause to be defined by the given function.Best used with lambda expressions.
- Specified by:
addin interfaceSimpleBooleanPredicateClausesCollector<SR,S extends C> - Parameters:
clauseContributor- A function that will use the factory passed in parameter to create a predicate, returning the final step in the predicate DSL. Should generally be a lambda expression.- Returns:
this, for method chaining.
-
with
Description copied from interface:SimpleBooleanPredicateClausesCollectorDelegates setting clauses and options to a given consumer.Best used with lambda expressions.
- Specified by:
within interfaceSimpleBooleanPredicateClausesCollector<SR,S extends C> - Parameters:
contributor- A consumer that will add clauses and options to the collector that it consumes. Should generally be a lambda expression.- Returns:
this, for method chaining.
-