Home » displaytag-1.1.1-src » org » displaytag » model » [javadoc | source]
org.displaytag.model
public class: DefaultComparator [javadoc | source]
java.lang.Object
   org.displaytag.model.DefaultComparator

All Implemented Interfaces:
    Comparator

Default comparator. Was previously part of RowSorter.
Constructor:
 public DefaultComparator() 
 public DefaultComparator(Collator collatorToUse) 
    Instantiate a default comparator with a specified collator.
    Parameters:
    collatorToUse - collator instance
Method from org.displaytag.model.DefaultComparator Summary:
compare
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.model.DefaultComparator Detail:
 public int compare(Object object1,
    Object object2) 
    Compares two given objects. Not comparable objects are compared using their string representation. String comparisons are done using a Collator.