Package org.opencms.workplace.list
Class CmsListItemNumericalComparator
- java.lang.Object
-
- org.opencms.workplace.list.CmsListItemNumericalComparator
-
- All Implemented Interfaces:
I_CmsListItemComparator
public class CmsListItemNumericalComparator extends java.lang.Object implements 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:
CmsListColumnDefinition
-
-
Constructor Summary
Constructors Constructor Description CmsListItemNumericalComparator()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Comparator<CmsListItem>
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.
-
-
-
Constructor Detail
-
CmsListItemNumericalComparator
public CmsListItemNumericalComparator()
Default Constructor.
-
-
Method Detail
-
getComparator
public java.util.Comparator<CmsListItem> getComparator(java.lang.String columnId, java.util.Locale locale)
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:
I_CmsListItemComparator.getComparator(java.lang.String, java.util.Locale)
-
-