Class BinaryPredicateIterableExpression<T>
- java.lang.Object
-
- org.tensorics.core.tree.domain.AbstractDeferredExpression<java.lang.Boolean>
-
- org.tensorics.core.iterable.expressions.BinaryPredicateIterableExpression<T>
-
- Type Parameters:
T
- the type of the results of the operands
- All Implemented Interfaces:
java.io.Serializable
,Expression<java.lang.Boolean>
,Node
public class BinaryPredicateIterableExpression<T> extends AbstractDeferredExpression<java.lang.Boolean> implements java.io.Serializable
An unresolved expression which can be resolved by applying a binary predicate on the results of the two operands (left, right). Any instance contains the binary predicate itself as well as expressions for both operands.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BinaryPredicateIterableExpression(BinaryPredicate<T> predicate, Expression<java.lang.Iterable<T>> left, Expression<T> right)
-
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.Expression<java.lang.Iterable<T>>
getLeft()
BinaryPredicate<T>
getPredicate()
Expression<T>
getRight()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class org.tensorics.core.tree.domain.AbstractDeferredExpression
get, isResolved
-
-
-
-
Constructor Detail
-
BinaryPredicateIterableExpression
public BinaryPredicateIterableExpression(BinaryPredicate<T> predicate, Expression<java.lang.Iterable<T>> left, Expression<T> right)
-
-
Method Detail
-
getPredicate
public BinaryPredicate<T> getPredicate()
-
getLeft
public Expression<java.lang.Iterable<T>> getLeft()
-
getRight
public Expression<T> getRight()
-
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
-
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
-
-