T
- the type of the argument to the functionE
- Thrown exception.@FunctionalInterface public interface FailableToIntFunction<T,E extends Throwable>
ToIntFunction
that declares a Throwable
.Modifier and Type | Field and Description |
---|---|
static FailableToIntFunction |
NOP
NOP singleton
|
Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(T t)
Applies this function to the given arguments.
|
static <T,E extends Throwable> |
nop()
Returns The NOP singleton.
|
static final FailableToIntFunction NOP
static <T,E extends Throwable> FailableToIntFunction<T,E> nop()
T
- the type of the argument to the functionE
- Thrown exception.Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.