public class AlphabetUserDeviceComparator extends java.lang.Object implements java.util.Comparator<UserDevice>, java.io.Serializable
构造器和说明 |
---|
AlphabetUserDeviceComparator()
默认构造器是按中文字母表进行排序
|
AlphabetUserDeviceComparator(java.util.Locale locale)
可以通过传入Locale值实现按不同语言进行排序
|
限定符和类型 | 方法和说明 |
---|---|
int |
compare(UserDevice obj1,
UserDevice obj2) |
public AlphabetUserDeviceComparator()
public AlphabetUserDeviceComparator(java.util.Locale locale)
public int compare(UserDevice obj1, UserDevice obj2)
compare
在接口中 java.util.Comparator<UserDevice>