org.araneaframework.backend.list.memorybased
Interface ComparatorExpression

All Superinterfaces:
Serializable
All Known Subinterfaces:
CompositeComparatorExpression
All Known Implementing Classes:
LazyComparatorExpression, MultiComparatorExpression, NopComparatorExpression, ReverseComparatorExpression, VariableComparatorExpression

public interface ComparatorExpression
extends Serializable

Expression that compares two Variables using two VariableResolvers for evaluating these Variables.

See Also:
VariableResolver

Method Summary
 int compare(VariableResolver resolver1, VariableResolver resolver2)
          Returns a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.
 

Method Detail

compare

public int compare(VariableResolver resolver1,
                   VariableResolver resolver2)
            throws ExpressionEvaluationException
Returns a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.

Parameters:
resolver1 - Resolver that is used to evalute the first Variable.
resolver2 - Resolver that is used to evalute the second Variable.
Returns:
a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.
Throws:
ExpressionEvaluationException - when the comparation fails.