Decision Center API

ilog.rules.teamserver.model.reporting
Interface IlrReportSorter

All Known Implementing Classes:
IlrDefaultReportSorter

public interface IlrReportSorter

An IlrReportSorter lets you sort elements and properties within a report.


Method Summary
 int compare(IlrReportContext reportContext, IlrElementDetails element1, IlrElementDetails element2)
          Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
 int compare(IlrReportContext reportContext, IlrElementDetails element, Object property1, Object property2)
          Returns a negative, zero, or positive number depending on whether the first property is less than, equal to, or greater than the second property.
 

Method Detail

compare

int compare(IlrReportContext reportContext,
            IlrElementDetails element1,
            IlrElementDetails element2)
Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.

Parameters:
reportContext - The context in which the report is executed.
element1 - The first element.
element2 - The second element.
Returns:
A negative number if the first element is less than the second element; the value 0 if the first element is equal to the second element; and a positive number if the first element is greater than the second element.

compare

int compare(IlrReportContext reportContext,
            IlrElementDetails element,
            Object property1,
            Object property2)
Returns a negative, zero, or positive number depending on whether the first property is less than, equal to, or greater than the second property.

Parameters:
reportContext - The context in which the report is executed.
element - The element from which the properties come from.
property1 - The first property.
property2 - The second property.
Returns:
A negative number if the first element is less than the second property; the value 0 if the first property is equal to the second property; and a positive number if the first property is greater than the second property.

Decision Center API

© Copyright IBM Corp. 1987, 2013