Comparator Plug-ins

The DomainComparator interface is used to control sort orders and it extends the DomainPlugIn interface and the standard java.util.Comparator interface. For more information about DomainComparator, see the Cúram JavaDoc documentation.

The java.util.Comparator interface defines a compare method that takes two java.lang.Object arguments and returns an integer that is positive if the first argument comes before the second argument in the sort order, negative if it comes after, and zero if the objects are equal. (See the JavaDoc documentation for the java.util.Comparator interface for more details.) An equals method is also defined by that interface, but it is of lesser importance; all Java classes inherit an implementation of the equals method from java.lang.Object or from another ancestor class and no further implementation is necessary.