Interface ThrowableLongUnaryOperator
-
- All Superinterfaces:
java.util.function.LongUnaryOperator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowableLongUnaryOperator extends java.util.function.LongUnaryOperatorRepresents an operation on a singlelong-valued operand that produces along-valued result. This is the primitive type specialization ofThrowableUnaryOperatorforlong.Permits checked exceptions unlike
LongUnaryOperatorThis is a functional interface whose functional method is
applyAsLong(long).- See Also:
ThrowableUnaryOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default longapplyAsLong(long operand)Applies this operator to the given operand.longapplyAsLongUnsafe(long operand)Applies this operator to the given operand.static ThrowableLongUnaryOperatoridentity()Returns a unary operator that always returns its input argument.
-
-
-
Method Detail
-
applyAsLongUnsafe
long applyAsLongUnsafe(long operand) throws java.lang.ThrowableApplies this operator to the given operand.- Parameters:
operand- the operand- Returns:
- the operator result
- Throws:
java.lang.Throwable- occurred during processing
-
applyAsLong
default long applyAsLong(long operand)
Applies this operator to the given operand.- Specified by:
applyAsLongin interfacejava.util.function.LongUnaryOperator- Parameters:
operand- the operand- Returns:
- the operator result
-
identity
static ThrowableLongUnaryOperator identity()
Returns a unary operator that always returns its input argument.- Returns:
- a unary operator that always returns its input argument
-
-