org.opencms.gwt.shared.sort
Class CmsComparatorTitle

java.lang.Object
  extended by org.opencms.gwt.shared.sort.CmsComparatorTitle
All Implemented Interfaces:
java.util.Comparator<I_CmsHasTitle>

public class CmsComparatorTitle
extends java.lang.Object
implements java.util.Comparator<I_CmsHasTitle>

Comparator for objects with a title property.

Since:
8.0.0
See Also:
I_CmsHasTitle

Constructor Summary
CmsComparatorTitle(boolean ascending)
          Constructor.
 
Method Summary
 int compare(I_CmsHasTitle o1, I_CmsHasTitle 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
 

Constructor Detail

CmsComparatorTitle

public CmsComparatorTitle(boolean ascending)
Constructor.

Parameters:
ascending - if true order is ascending
Method Detail

compare

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