public class SiteComparator extends Object implements Comparator
| Constructor and Description |
|---|
SiteComparator(String criterion,
String asc)
constructor
|
SiteComparator(String criterion,
String asc,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2)
implementing the Comparator compare function
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic SiteComparator(String criterion, String asc)
criteria - The sort criteria stringasc - The sort order string. TRUE_STRING if ascending; "false"
otherwise.public int compare(Object o1, Object o2)
compare in interface Comparatoro1 - The first objecto2 - The second objectCopyright © 2003–2018 University of Michigan. All rights reserved.