T
- the returned value type@FunctionalInterface
public interface IntFunction<T>
Modifier and Type | Method and Description |
---|---|
T |
apply(int i)
Calculates a value based on a primitive integer input.
|
T apply(int i) throws java.lang.Throwable
i
- the input valuejava.lang.Throwable
- if the implementation wishes to throw any type of exception