public abstract class DoubleFunction extends Object implements Function<Double>
Function
for primitives that accepts an argument of type double and returns a new
value of the same type.
The reason why DoubleFunction
is an abstract class instead of an ordinary interface, is that
this class doesn't cause any unwanted boxing of primitives version of the call method is used instead of the one that
accepts and returns a/an Double).
This class is generated.
Constructor and Description |
---|
DoubleFunction() |
Modifier and Type | Method and Description |
---|---|
abstract double |
call(double current)
Calculates the new value based on the current value.
|
Double |
call(Double arg)
Evaluates the function.
|
Copyright © 2020. All rights reserved.