Interface ThrowableDoubleUnaryOperator

All Superinterfaces:
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 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:
  • Method Summary

    Modifier and Type
    Method
    Description
    default double
    applyAsDouble(double operand)
    Applies this operator to the given operand.
    double
    applyAsDoubleUnsafe(double operand)
    Applies this operator to the given operand.
    Returns a unary operator that always returns its input argument.

    Methods inherited from interface java.util.function.DoubleUnaryOperator

    andThen, compose
  • Method Details

    • applyAsDoubleUnsafe

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

      default double applyAsDouble(double operand)
      Applies this operator to the given operand.
      Specified by:
      applyAsDouble in interface 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