Interface GenericSimpleBooleanPredicateClausesStep<S extends C,C extends SimpleBooleanPredicateClausesCollector<?>>
-
- Type Parameters:
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<C>
- All Known Subinterfaces:
NestedPredicateClausesStep<S>,SimpleBooleanPredicateClausesStep<S>
- All Known Implementing Classes:
AbstractSimpleBooleanPredicateClausesStep,NestedPredicateClausesStepImpl,SimpleBooleanPredicateClausesStepImpl
public interface GenericSimpleBooleanPredicateClausesStep<S extends C,C extends SimpleBooleanPredicateClausesCollector<?>> extends SimpleBooleanPredicateClausesCollector<C>, PredicateFinalStep
A generic superinterface for "simple boolean predicate" DSL steps that involve collecting clauses.See also
PredicateScoreSteporPredicateFinalStep.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Sadd(Function<? super SearchPredicateFactory,? 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.Sadd(SearchPredicate searchPredicate)Adds the specified previously-builtSearchPredicateto the list of clauses.Swith(Consumer<? super C> contributor)Delegates setting clauses and options to a given consumer.-
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.PredicateFinalStep
toPredicate
-
Methods inherited from interface org.hibernate.search.engine.search.predicate.dsl.SimpleBooleanPredicateClausesCollector
hasClause
-
-
-
-
Method Detail
-
add
default S add(PredicateFinalStep searchPredicate)
Description copied from interface:SimpleBooleanPredicateClausesCollectorAdds the specified predicate to the list of clauses.- Specified by:
addin interfaceSimpleBooleanPredicateClausesCollector<S extends C>- Returns:
this, for method chaining.
-
add
S add(SearchPredicate searchPredicate)
Description copied from interface:SimpleBooleanPredicateClausesCollectorAdds the specified previously-builtSearchPredicateto the list of clauses.- Specified by:
addin interfaceSimpleBooleanPredicateClausesCollector<S extends C>- Returns:
this, for method chaining.
-
add
S add(Function<? super SearchPredicateFactory,? 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<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
S with(Consumer<? super C> contributor)
Description copied from interface:SimpleBooleanPredicateClausesCollectorDelegates setting clauses and options to a given consumer.Best used with lambda expressions.
- Specified by:
within interfaceSimpleBooleanPredicateClausesCollector<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.
-
-