Package org.opencms.workplace.list
Class CmsListItemCaseInsensitiveComparator
java.lang.Object
org.opencms.workplace.list.CmsListItemCaseInsensitiveComparator
- All Implemented Interfaces:
I_CmsListItemComparator
Comparator for case insensitive column sorting with string localization.
If both list items column values are Strings then a localized collector is used for sorting;
if not, the
interface is used.Comparable
- Since:
- 6.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComparator
(String columnId, Locale locale) Returns a new comparator for comparing list items by the given column, and using the given locale.
-
Constructor Details
-
CmsListItemCaseInsensitiveComparator
public CmsListItemCaseInsensitiveComparator()Default Constructor.
-
-
Method Details
-
getComparator
Description copied from interface:I_CmsListItemComparator
Returns a new comparator for comparing list items by the given column, and using the given locale.- Specified by:
getComparator
in interfaceI_CmsListItemComparator
- Parameters:
columnId
- the id of the column to sort bylocale
- the current used locale- Returns:
- a new comparator
- See Also:
-