Class OrderByExpression
- java.lang.Object
-
- com.gdblab.pathAlgebra.expressions.OrderByExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OrderByExpression>
public class OrderByExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<OrderByExpression>
Order-by operator: τ_criterion(solutionSpace)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description OrderByCriterioncriterionstatic NameCRITERIONName of thecom.gdblab.pathAlgebra.expressions.OrderByExpression.criterionfield.SolutionSpaceExpressionexpressionstatic NameEXPRESSIONName of thecom.gdblab.pathAlgebra.expressions.OrderByExpression.expressionfield.static NameTYPE_Name of thecom.gdblab.pathAlgebra.expressions.OrderByExpressiontype.
-
Constructor Summary
Constructors Constructor Description OrderByExpression(OrderByCriterion criterion, SolutionSpaceExpression expression)Constructs an immutableOrderByExpression.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OrderByExpression other)booleanequals(java.lang.Object other)inthashCode()OrderByExpressionwithCriterion(OrderByCriterion criterion)Returns a copy of thisOrderByExpressionwithcriterionreplaced.OrderByExpressionwithExpression(SolutionSpaceExpression expression)Returns a copy of thisOrderByExpressionwithexpressionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thecom.gdblab.pathAlgebra.expressions.OrderByExpressiontype.
-
CRITERION
public static final Name CRITERION
Name of thecom.gdblab.pathAlgebra.expressions.OrderByExpression.criterionfield.
-
EXPRESSION
public static final Name EXPRESSION
Name of thecom.gdblab.pathAlgebra.expressions.OrderByExpression.expressionfield.
-
criterion
public final OrderByCriterion criterion
-
expression
public final SolutionSpaceExpression expression
-
-
Constructor Detail
-
OrderByExpression
public OrderByExpression(OrderByCriterion criterion, SolutionSpaceExpression expression)
Constructs an immutableOrderByExpression.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(OrderByExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<OrderByExpression>
-
withCriterion
public OrderByExpression withCriterion(OrderByCriterion criterion)
Returns a copy of thisOrderByExpressionwithcriterionreplaced.
-
withExpression
public OrderByExpression withExpression(SolutionSpaceExpression expression)
Returns a copy of thisOrderByExpressionwithexpressionreplaced.
-
-