Login | Register
My pages Projects Community openCollabNet

The Tigris site will receive a major upgrade the evening of Monday, December 1, beginning at 8:30 pm PST. Downtime is projected to be about ten hours. Further details in the announcement


jmt.application.elements
Interface ElementSetModelComparator


public interface ElementSetModelComparator

Describes a comparator used to sort a model set.

Author:
Martin Kersten

Method Summary
 int compare(ElementSetModel setModel, int element, int element2)
          Returns the result of comparing the elements with index element1 and index element2 (index are the index of the elements in the set not of the model itself).
 

Method Detail

compare

public int compare(ElementSetModel setModel,
                   int element,
                   int element2)
Returns the result of comparing the elements with index element1 and index element2 (index are the index of the elements in the set not of the model itself). The result of comparing the elements is less then zero if element1 is smaller then element2.

Parameters:
setModel - The model set calling the compare method
element - The index of the first element in the model set
element2 - The index of the second element in the model set
Returns:
The result of comparing the elements