Class CmsListItemDataComparator

  • All Implemented Interfaces:

    public class CmsListItemDataComparator
    extends java.lang.Object
    implements java.util.Comparator<CmsListItem>
    Comparator for list items with a data value widget as there main widget.

    • Constructor Summary

      Constructor Description
      CmsListItemDataComparator​(int paramIndex, boolean ascending)
      Default Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(CmsListItem o1, CmsListItem o2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • CmsListItemDataComparator

        public CmsListItemDataComparator​(int paramIndex,
                                         boolean ascending)
        Default Constructor.

        paramIndex - the parameter index to compare
        ascending - the sort order
    • Method Detail

      • compare

        public int compare​(CmsListItem o1,
                           CmsListItem o2)
        Specified by:
        compare in interface java.util.Comparator<CmsListItem>
        See Also:, java.lang.Object)