Package org.opencms.workplace.list
Class CmsListItemNumericalComparator
java.lang.Object
org.opencms.workplace.list.CmsListItemNumericalComparator
- All Implemented Interfaces:
I_CmsListItemComparator
Default comparator for case sensitive 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
-
CmsListItemNumericalComparator
public CmsListItemNumericalComparator()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:
-