com.ibm.streamsx.topology.logic

Class Identity<T>

  • java.lang.Object
    • com.ibm.streamsx.topology.logic.Identity<T>
  • Type Parameters:
    T - Type of the operand.
    All Implemented Interfaces:
    Function<T,T>, UnaryOperator<T>, java.io.Serializable


    public final class Identity<T>
    extends java.lang.Object
    implements UnaryOperator<T>
    Identity unary function that returns its input.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Identity() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      T apply(T v)
      Returns the input value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Identity

        public Identity()
    • Method Detail

      • apply

        public T apply(T v)
        Returns the input value.
        Specified by:
        apply in interface Function<T,T>
        Returns:
        v
streamsx.topology 2.1 @ IBMStreams GitHub