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:
  • Constructor Details

    • IdentityFunction

      public IdentityFunction()
  • Method Details

    • 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