public final class BasicQuickSortCompare extends java.lang.Object implements QuickSortCompare
COPYRIGHT
Constructor and Description |
---|
BasicQuickSortCompare()
The default constructor.
|
BasicQuickSortCompare(java.text.Collator collator)
This constructor lets you specify a
Collator . |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Performs the quick sort by comparing the two objects.
|
public BasicQuickSortCompare()
public BasicQuickSortCompare(java.text.Collator collator)
Collator
.public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface QuickSortCompare
obj1
- the first objectobj2
- the second object0
if the objects are equal.1
if obj1
is greater than obj2
.1
if ojb1
is less than obj2
.