@FunctionalInterface
public interface CheckedIntFunction<R>
IntFunction that allows for checked exceptions.| Modifier and Type | Method | Description |
|---|---|---|
R |
apply(int value) |
Applies this function to the given argument.
|
static <R> java.util.function.IntFunction<R> |
sneaky(CheckedIntFunction<R> function) |
|
static <R> java.util.function.IntFunction<R> |
unchecked(CheckedIntFunction<R> function) |
|
static <R> java.util.function.IntFunction<R> |
unchecked(CheckedIntFunction<R> function,
java.util.function.Consumer<java.lang.Throwable> handler) |
R apply(int value) throws java.lang.Throwable
value - the function argumentjava.lang.Throwablestatic <R> java.util.function.IntFunction<R> sneaky(CheckedIntFunction<R> function)
static <R> java.util.function.IntFunction<R> unchecked(CheckedIntFunction<R> function)
static <R> java.util.function.IntFunction<R> unchecked(CheckedIntFunction<R> function, java.util.function.Consumer<java.lang.Throwable> handler)
Copyright © 2018. All rights reserved.