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

com.ibm.streamsx.topology.function

## Interface ToIntFunction<T>

- Type Parameters:
    `T` - Type of the input to the function
  All Superinterfaces:
    java.io.Serializable

      public interface ToIntFunction<T>
      extends java.io.Serializable

  A function that applies a computation to a tuple and returns an `int` result.
  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
    --- | ---
    `int` | `applyAsInt(T tuple)` Apply the function to the `tuple` and return an `int`.

- - ### Method Detail

    - #### applyAsInt

          int applyAsInt(T tuple)

      Apply the function to the `tuple` and return an `int`.
      Parameters:
        `tuple` - Tuple to be tested.
      Returns:
        int result of the function.