public class CmsListItemCaseInsensitiveComparator extends java.lang.Object implements I_CmsListItemComparator
If both list items column values are Strings then a localized collector is used for sorting;
if not, the
interface is used.Comparable
CmsListColumnDefinition
构造器和说明 |
---|
CmsListItemCaseInsensitiveComparator()
Default Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.Comparator |
getComparator(java.lang.String columnId,
java.util.Locale locale)
Returns a new comparator for comparing list items by the given column,
and using the given locale.
|
public CmsListItemCaseInsensitiveComparator()
public java.util.Comparator getComparator(java.lang.String columnId, java.util.Locale locale)
I_CmsListItemComparator
getComparator
在接口中 I_CmsListItemComparator
columnId
- the id of the column to sort bylocale
- the current used localeI_CmsListItemComparator.getComparator(java.lang.String, java.util.Locale)