Package com.sap.cds
Interface CdsDataProcessor.Filter
-
- Enclosing interface:
- CdsDataProcessor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Beta @FunctionalInterface public static interface CdsDataProcessor.Filter
Predicate to filter a CdsElement by the element's CdsType.This is a functional interface whose functional method is
test(Path, CdsElement, CdsType)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
test(Path path, CdsElement element)
boolean
test(Path path, CdsElement element, CdsType type)
Evaluates this filter predicate on the given arguments.
-
-
-
Method Detail
-
test
boolean test(Path path, CdsElement element, CdsType type)
Evaluates this filter predicate on the given arguments.- Parameters:
path
- the path to the elementelement
- the CDS elementtype
- the element's CdsType, for associations the target type, for arrayed elements the item type- Returns:
true
if the input arguments match the predicate, otherwisefalse
-
test
default boolean test(Path path, CdsElement element)
-
-