Interface ThrowableDoubleUnaryOperator

  • All Superinterfaces:
    java.util.function.DoubleUnaryOperator
    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 ThrowableDoubleUnaryOperator
    extends java.util.function.DoubleUnaryOperator
    Represents an operation on a single double-valued operand that produces a double-valued result. This is the primitive type specialization of ThrowableUnaryOperator for double.

    Permits checked exceptions unlike DoubleUnaryOperator

    This is a functional interface whose functional method is applyAsDouble(double).

    See Also:
    ThrowableUnaryOperator
    • Method Detail

      • applyAsDoubleUnsafe

        double applyAsDoubleUnsafe​(double operand)
                            throws java.lang.Throwable
        Applies this operator to the given operand.
        Parameters:
        operand - the operand
        Returns:
        the operator result
        Throws:
        java.lang.Throwable - occurred during processing
      • applyAsDouble

        default double applyAsDouble​(double operand)
        Applies this operator to the given operand.
        Specified by:
        applyAsDouble in interface java.util.function.DoubleUnaryOperator
        Parameters:
        operand - the operand
        Returns:
        the operator result
      • identity

        static ThrowableDoubleUnaryOperator identity()
        Returns a unary operator that always returns its input argument.
        Returns:
        a unary operator that always returns its input argument