Function (Java Application API for IBM Streams)
Date: 2020-08-07

com.ibm.streamsx.topology.function

## Interface Function<T,R>

- Type Parameters:
    `T` - Type of the first (and only) argument
    `R` - Type of the return value.
  All Superinterfaces:
    java.io.Serializable
  All Known Subinterfaces:
    UnaryOperator<T>
  All Known Implementing Classes:
    BeaconStreams.BeaconFunction, CollectionStreams.FlattenCollection, CollectionStreams.FlattenMap, Identity, JSONStreams.DeserializeJSON, JSONStreams.SerializeJSON, JSONStreams.ToJSON

      public interface Function<T,R>
      extends java.io.Serializable

  A function that is passed an argument and returns a value.
  If an implementation also implements `java.lang.AutoCloseable` then it will be automatically closed when the application terminates.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `R` | `apply(T v)`

- - ### Method Detail

    - #### apply

          R apply(T v)