Interface Consumer<T>

  • Type Parameters:
    T - the type of the input argument
    All Superinterfaces:
    Operation, Serializable
    All Known Implementing Classes:
    PrintConsumer

    public interface Consumer<T>
    extends Operation
    Represents an operation that accepts a single input argument and returns no result.
    • Method Detail

      • accept

        void accept​(T input)
        Performs an operation on the given argument.
        Parameters:
        input - the input