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