Package org.tensorics.core.expressions
Class ConversionOperationExpression<T,R>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<R>
-
- org.tensorics.core.expressions.ConversionOperationExpression<T,R>
-
- Type Parameters:
T
- the type of the values of the tensorR
- the type of the tensorbacked object
- All Implemented Interfaces:
java.io.Serializable
,Expression<R>
,Node
- Direct Known Subclasses:
AnyIterableConversionExpression
,DiscreteFunctionToIterableExpression
,IterableOperationExpression
,PreconditionExpression
public class ConversionOperationExpression<T,R> extends AbstractDeferredExpression<R> implements java.io.Serializable
Represents an expression, which takes takes (expressions of) objects of one type and converts them into others.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConversionOperationExpression(Conversion<T,R> operation, Expression<? extends T> source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<Node>
getChildren()
Has to return the children of the node.Conversion<T,R>
getOperation()
Expression<? extends T>
getSource()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
ConversionOperationExpression
public ConversionOperationExpression(Conversion<T,R> operation, Expression<? extends T> source)
-
-
Method Detail
-
getChildren
public java.util.List<Node> 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
-
getSource
public Expression<? extends T> getSource()
-
getOperation
public Conversion<T,R> getOperation()
-
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
-
-