Interface UnfailingItemConsumer<T extends Item>

  • Type Parameters:
    T - the type of items to be processed
    All Superinterfaces:
    java.util.function.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>, java.util.function.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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(T item)
      Process one item
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Method Detail

      • accept

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