@FunctionalInterface public interface CheckedToIntFunction<T>
ToIntFunction that allows for checked exceptions.| Modifier and Type | Method and Description |
|---|---|
int |
applyAsInt(T value)
Applies this function to the given argument.
|
static <T> java.util.function.ToIntFunction<T> |
unchecked(CheckedToIntFunction<T> function) |
static <T> java.util.function.ToIntFunction<T> |
unchecked(CheckedToIntFunction<T> function,
java.util.function.Consumer<Throwable> handler) |
int applyAsInt(T value) throws Throwable
value - the function argumentThrowablestatic <T> java.util.function.ToIntFunction<T> unchecked(CheckedToIntFunction<T> function)
Unchecked#toIntFunction(CheckedToIntFunction)}static <T> java.util.function.ToIntFunction<T> unchecked(CheckedToIntFunction<T> function, java.util.function.Consumer<Throwable> handler)
Unchecked#toIntFunction(CheckedToIntFunction, Consumer)}Copyright © 2016. All Rights Reserved.