Package io.reactivex.rxjava3.functions
Interface IntFunction<T>
- Type Parameters:
T
- the returned value type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface (callback) that takes a primitive value and return value of type T.
-
Method Summary
-
Method Details
-
apply
Calculates a value based on a primitive integer input.- Parameters:
i
- the input value- Returns:
- the result Object
- Throws:
Throwable
- if the implementation wishes to throw any type of exception
-