Interface Filter
- All Superinterfaces:
Iterable<CriteriaDefinition>
,Streamable<CriteriaDefinition>
,Supplier<Stream<CriteriaDefinition>>
- All Known Implementing Classes:
Query
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Filter consisting of
CriteriaDefinition
s to be used with SELECT, UPDATE and
DELETE queries. A Filter
describes the matched set of rows to execute a particular operation.- Since:
- 2.0
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic Filter
from
(Iterable<? extends CriteriaDefinition> criteriaDefinitions) Create a simpleFilter
givenCriteriaDefinition
s.static Filter
from
(CriteriaDefinition... criteriaDefinitions) Create a simpleFilter
givenCriteriaDefinition
s.default Iterator<CriteriaDefinition>
iterator()
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getCriteriaDefinitions
Iterable<CriteriaDefinition> getCriteriaDefinitions()- Returns:
- the
CriteriaDefinition
s.
-
from
Create a simpleFilter
givenCriteriaDefinition
s.- Parameters:
criteriaDefinitions
- must not be null.- Returns:
- the
Filter
object forCriteriaDefinition
s.
-
from
Create a simpleFilter
givenCriteriaDefinition
s.- Parameters:
criteriaDefinitions
- must not be null.- Returns:
- the
Filter
object forCriteriaDefinition
s.
-
iterator
- Specified by:
iterator
in interfaceIterable<CriteriaDefinition>
-