public static final class SegmentCountriesDataBean.CountryQuickSortCompare extends java.lang.Object implements QuickSortCompare
Country
objects during a quick sort.COPYRIGHT
Constructor and Description |
---|
CountryQuickSortCompare(java.text.Collator localeCollator)
This constructor takes a
Collater object. |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compares two
Country objects. |
public CountryQuickSortCompare(java.text.Collator localeCollator)
Collater
object.localeCollator
- the locale collator used in the sortingpublic int compare(java.lang.Object obj1, java.lang.Object obj2)
Country
objects.compare
in interface QuickSortCompare
obj1
- the first Object
obj2
- the second Object
0
if the objects are equal.
A value greater than 1 if obj1 is greater than obj2.
A value less than 1 if ojb1 is less than obj2.