Interface ItemConsumer<T extends Item>

  • Type Parameters:
    T - the type of items to be processed
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ItemConsumer<T extends Item>
    A FunctionalInterface for any method that processes individual items, and which may generate exceptions.
    • Method Detail

      • accept

        void accept​(T item)
             throws XPathException
        Process one item
        Parameters:
        item - the item to be processed
        Throws:
        XPathException - if the processing fails