Interface FilteringFeed.Filter

  • All Known Implementing Classes:
    FilteringFeed.FilterLambda, SubsequenceStreamer.SubsequenceFilter
    Enclosing class:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public static interface FilteringFeed.Filter
    Interface defining the filter function, to be implemented by the caller
    • Method Detail

      • matches

        FilteringFeed.FilterResult matches​(Item item,
                                           int position)
                                    throws XPathException
        Test whether a given item, at a given position in the sequence, matches the filter
        item - the item to be matched
        position - the 1-based position of the item in the sequence
        MATCHES if the item is to be included in the result, SKIP if it is to be excluded; DONE if this and all future items are to be excluded
        XPathException - if a dynamic error occurs