|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.multiverse.api.functions.DoubleFunction
public abstract class DoubleFunction
A 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 Summary | |
|---|---|
DoubleFunction()
|
|
| Method Summary | |
|---|---|
abstract double |
call(double current)
Calculates the new value based on the current value. |
Double |
call(Double arg)
Evaluates the function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleFunction()
| Method Detail |
|---|
public abstract double call(double current)
current - the current value.
public final Double call(Double arg)
Function
call in interface Function<Double>arg - the value to evaluate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||