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 Detail

      • test

        boolean test​(Path path,
                     CdsElement element,
                     CdsType type)
        Evaluates this filter predicate on the given arguments.
        Parameters:
        path - the path to the element
        element - the CDS element
        type - the element's CdsType, for associations the target type, for arrayed elements the item type
        Returns:
        true if the input arguments match the predicate, otherwise false