Package org.apache.storm.streams.operations

## Class IdentityFunction<T>

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

- Type Parameters:
    `T` - the type of the input
  All Implemented Interfaces:
    `Serializable`, `Function<T,​T>`, `Operation`

      public class IdentityFunction<T>
      extends Object
      implements Function<T,​T>

  A `Function` that returns the input argument itself as the result.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `IdentityFunction()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `T` | `apply​(T input)` | Applies this function to the given argument.

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

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

- - ### Constructor Detail

    - #### IdentityFunction

          public IdentityFunction()

  - ### Method Detail

    - #### apply

          public T apply​(T input)

      Description copied from interface: `Function`
      Applies this function to the given argument.
      Specified by:
        `apply` in interface `Function<T,​T>`
      Parameters:
        `input` - the input to the function
      Returns:
        the function result