Interface 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 DoubleUnaryOperator
An operation on one double that answers a double; the double form of UnaryOperator.
  • Method Details

    • applyAsDouble

      double applyAsDouble(double operand)
      Applies this operator.
      Parameters:
      operand - the input
      Returns:
      the result
    • compose

      default DoubleUnaryOperator compose(DoubleUnaryOperator before)
      before, then this operator on its result.
      Parameters:
      before - the operator applied first
      Returns:
      the composed operator
    • andThen

      default DoubleUnaryOperator andThen(DoubleUnaryOperator after)
      This operator, then after on its result.
      Parameters:
      after - the operator applied next
      Returns:
      the composed operator
    • identity

      static DoubleUnaryOperator identity()
      The operator that answers its operand.
      Returns:
      the identity operator