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.

    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
        item - the item to be processed
        XPathException - if the processing fails