LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.infointerface
Interface LyComparatorInterface

All Known Implementing Classes:
LyClassInfoComparator, LyMetricsChartBehavior

public interface LyComparatorInterface

Interface used to compare two objects with a sort criterion.


Field Summary
static java.lang.String __VERSION
           
 
Method Summary
 int compare(LySortCriterion criterion, LyObject object1, LyObject object2)
          Method to compare two objects according a given sort criterion.
 

Field Detail

__VERSION

static final java.lang.String __VERSION
See Also:
Constant Field Values
Method Detail

compare

int compare(LySortCriterion criterion,
            LyObject object1,
            LyObject object2)
Method to compare two objects according a given sort criterion. The given objects are not null and are not equals.

Parameters:
criterion - the sort criterion.
object1 - the first object
object2 - the second object
Returns:
O if the two values are equals, a positive value if value of object1 is "greater" than value of object2, a negative value otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com