Interface ThrowableIntUnaryOperator
-
- All Superinterfaces:
java.util.function.IntUnaryOperator
- 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 ThrowableIntUnaryOperator extends java.util.function.IntUnaryOperatorRepresents an operation on a singleint-valued operand that produces anint-valued result. This is the primitive type specialization ofThrowableUnaryOperatorforint.Permits checked exceptions unlike
IntUnaryOperatorThis is a functional interface whose functional method is
applyAsInt(int).- See Also:
ThrowableUnaryOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intapplyAsInt(int operand)Applies this operator to the given operand.intapplyAsIntUnsafe(int operand)Applies this operator to the given operand.static ThrowableIntUnaryOperatoridentity()Returns a unary operator that always returns its input argument.
-
-
-
Method Detail
-
applyAsIntUnsafe
int applyAsIntUnsafe(int 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
-
applyAsInt
default int applyAsInt(int operand)
Applies this operator to the given operand.- Specified by:
applyAsIntin interfacejava.util.function.IntUnaryOperator- Parameters:
operand- the operand- Returns:
- the operator result
-
identity
static ThrowableIntUnaryOperator identity()
Returns a unary operator that always returns its input argument.- Returns:
- a unary operator that always returns its input argument
-
-