Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
@FunctionalInterface
public interface DoubleUnaryOperator
Methods
Method details
applyAsDouble
public abstract double applyAsDouble(double operand)Applies this operator.
Parameters
operanddouble- the input
Returns
the result
compose
public default DoubleUnaryOperator compose(DoubleUnaryOperator before)before, then this operator on its result.Parameters
beforeDoubleUnaryOperator- the operator applied first
Returns
the composed operator
andThen
public default DoubleUnaryOperator andThen(DoubleUnaryOperator after)This operator, then
after on its result.Parameters
afterDoubleUnaryOperator- the operator applied next
Returns
the composed operator
identity
public static DoubleUnaryOperator identity()The operator that answers its operand.
Returns
the identity operator