Package io.deephaven.plot.util.functions
Class ClosureDoubleUnaryOperator<T extends Number>
java.lang.Object
io.deephaven.plot.util.functions.HasClosure<T>
io.deephaven.plot.util.functions.ClosureDoubleUnaryOperator<T>
- All Implemented Interfaces:
DoubleUnaryOperator
public class ClosureDoubleUnaryOperator<T extends Number>
extends HasClosure<T>
implements DoubleUnaryOperator
A serializable closure which maps doubles to doubles.
-
Constructor Summary
ConstructorDescriptionClosureDoubleUnaryOperator
(groovy.lang.Closure<T> closure) Constructs a ClosureDoubleUnaryOperator instance. -
Method Summary
Methods inherited from class io.deephaven.plot.util.functions.HasClosure
getClosure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.DoubleUnaryOperator
andThen, compose
-
Constructor Details
-
ClosureDoubleUnaryOperator
Constructs a ClosureDoubleUnaryOperator instance.- Parameters:
closure
- closure
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(double operand) - Specified by:
applyAsDouble
in interfaceDoubleUnaryOperator
-