T
- type of the values returned by the functionpublic interface Function<T>
getName()
and it operates on the arguments provided in the evaluate(Object...)
method
and returns a value of type
A sample implementation of this interface is shown in
CalcSomething.java
which demonstrates a custom function that can operate on several (at least 2) numeric arguments and returns
a value of type Double
.
Modifier and Type | Interface and Description |
---|---|
static interface |
Function.Factory
This interface provides a factory method for creating
Function instances. |
Modifier and Type | Method and Description |
---|---|
T |
evaluate(Object... arguments)
Evaluates the function given some arguments.
|
Class<T> |
getFunctionType() |
String |
getName() |
boolean |
isDeterministic()
Indicate whether a function is deterministic or not.
|
String getName()
Class<T> getFunctionType()
boolean isDeterministic()
true
the function is deterministic and allows constant folding; if false
constant folding should not be allowed.Copyright © 2005–2016 Zementis, Inc.. All rights reserved.