Class FunctionalExpression<R>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<R>
-
- org.tensorics.core.functional.expressions.FunctionalExpression<R>
-
- Type Parameters:
R
- the type of the result of the expression
- All Implemented Interfaces:
java.io.Serializable
,Expression<R>
,Node
public class FunctionalExpression<R> extends AbstractDeferredExpression<R> implements java.io.Serializable
Expression that evaluates using aFuncN
function. This is a lambda-like expression.- See Also:
FiniteArgumentFunction
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionalExpression(java.util.List<Expression<?>> children, FuncN<R> func)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
FuncN<R>
function()
java.util.List<Expression<?>>
getChildren()
Has to return the children of the node.int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
FunctionalExpression
public FunctionalExpression(java.util.List<Expression<?>> children, FuncN<R> func)
-
-
Method Detail
-
getChildren
public java.util.List<Expression<?>> getChildren()
Description copied from interface:Node
Has to return the children of the node. This must never returnnull
- Specified by:
getChildren
in interfaceNode
- Returns:
- a list containing all the children of the node
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-