public class AlphaBeticalComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>
History:
Constructor and Description |
---|
AlphaBeticalComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compare two string objects alphabetically
|
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator<T>
o1
- the first string object to be comparedo2
- the second string object fto be compared