@FunctionalInterface public interface CheckedToIntFunction<T>
ToIntFunction that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
int |
applyAsInt(T value) |
Applies this function to the given argument.
|
static <T> ToIntFunction<T> |
sneaky(CheckedToIntFunction<T> function) |
|
static <T> ToIntFunction<T> |
unchecked(CheckedToIntFunction<T> function) |
|
static <T> ToIntFunction<T> |
unchecked(CheckedToIntFunction<T> function,
Consumer<Throwable> handler) |
int applyAsInt(T value) throws Throwable
value - the function argumentThrowablestatic <T> ToIntFunction<T> sneaky(CheckedToIntFunction<T> function)
static <T> ToIntFunction<T> unchecked(CheckedToIntFunction<T> function)
static <T> ToIntFunction<T> unchecked(CheckedToIntFunction<T> function, Consumer<Throwable> handler)
Copyright © 2018. All rights reserved.