org.apache.storm.streams.operations

## Class PrintConsumer<T>

- java.lang.Object
- - org.apache.storm.streams.operations.PrintConsumer<T>

- All Implemented Interfaces:
    Serializable, Consumer<T>, Operation

      public class PrintConsumer<T>
      extends Object
      implements Consumer<T>

  A consumer that prints the input to stdout.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PrintConsumer()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(T input)` Performs an operation on the given argument.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PrintConsumer

          public PrintConsumer()

  - ### Method Detail

    - #### accept

          public void accept(T input)

      Description copied from interface: `Consumer`

      Performs an operation on the given argument.

      Specified by:
        `accept` in interface `Consumer<T>`
      Parameters:
        `input` - the input

Copyright © 2021 The Apache Software Foundation. All rights reserved.