T
- see ToIntFunction
@FunctionalInterface public interface ThrowingToIntFunction<T>
ToIntFunction
that allows throwing checked exceptions. ThrowingToIntFunction
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromToIntFunction(ThrowingToIntFunction)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
int |
applyAsInt(T value)
Variation of ToIntFunction.applyAsInt(Object) that allows throwing checked exceptions.
|
int applyAsInt(T value) throws Throwable
ToIntFunction.applyAsInt(Object)
that allows throwing checked exceptions.
value
- see ToIntFunction.applyAsInt(Object)
ToIntFunction.applyAsInt(Object)
Throwable
- if unable to complete
CheckedExceptionHandler.fromToIntFunction(ThrowingToIntFunction)
, ToIntFunction.applyAsInt(Object)
Copyright © 2017–2020 Robert Važan. All rights reserved.