public class DoubleFunctionProcessor
extends java.lang.Object
DoubleFunctionProcessor
in compound application to an initial value.Constructor and Description |
---|
DoubleFunctionProcessor(double initValue)
Construct a
DoubleFunctionProcessor object with a given initial value initValue |
Modifier and Type | Method and Description |
---|---|
double |
getValue()
Return the current value of this
DoubleFunctionProcessor . |
void |
process(java.util.function.DoubleFunction<java.lang.Double> function)
In a thread-safe manner, call
function.apply(...) on the DoubleFunctionProcessor current value and let the new value be the result returned. |
public DoubleFunctionProcessor(double initValue)
DoubleFunctionProcessor
object with a given initial value initValue
initValue
- a given initial valuepublic void process(java.util.function.DoubleFunction<java.lang.Double> function)
function.apply(...)
on the DoubleFunctionProcessor
current value and let the new value be the result returned.function
- an object that produces a new DoubleFunctionProcessor
value by calling the apply
method on the current value.public double getValue()
DoubleFunctionProcessor
.DoubleFunctionProcessor