Interface UnfailingItemConsumer<T extends Item>

  • Type Parameters:
    T - the type of items to be processed
    All Superinterfaces:
    Consumer<T>, ItemConsumer<T>
    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 UnfailingItemConsumer<T extends Item>
    extends ItemConsumer<T>, Consumer<T>
    A FunctionalInterface for any method that processes individual items. It differs from the superclass ItemConsumer in that it cannot throw checked exceptions
    • Method Detail

      • accept

        void accept​(T item)
        Process one item
        Specified by:
        accept in interface Consumer<T extends Item>
        Specified by:
        accept in interface ItemConsumer<T extends Item>
        Parameters:
        item - the item to be processed