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