Package org.sakaiproject.site.util
Class SiteComparator
- java.lang.Object
-
- org.sakaiproject.site.util.SiteComparator
-
- All Implemented Interfaces:
Comparator
public class SiteComparator extends Object implements Comparator
The comparator to be used in Worksite Setup/Site Info tool
-
-
Constructor Summary
Constructors Constructor Description SiteComparator(String criterion, String asc)constructorSiteComparator(String criterion, String asc, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object o1, Object o2)implementing the Comparator compare function-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
implementing the Comparator compare function- Specified by:
comparein interfaceComparator- Parameters:
o1- The first objecto2- The second object- Returns:
- The compare result. 1 is o1 < o2; -1 otherwise
-
-