Top Description Methods
io.reactivex.rxjava3.functions

public Interface IntFunction<T>

Annotations
@FunctionalInterface
Type Parameters
<T>
the returned value type
Imports
io.reactivex.rxjava3.annotations.NonNull

A functional interface (callback) that takes a primitive value and return value of type T.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the result Object
apply
(int
the input value
i
)

Calculates a value based on a primitive integer input.

Method Detail

applyback to summary
public T apply(int i) throws Throwable

Calculates a value based on a primitive integer input.

Parameters
i:int

the input value

Returns:T

the result Object

Exceptions
Throwable:
if the implementation wishes to throw any type of exception