org.opencms.gwt.shared.sort
Class CmsComparatorPath

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

public class CmsComparatorPath
extends java.lang.Object
implements java.util.Comparator<I_CmsHasPath>

Comparator for objects with a path property.

Since:
8.0.0
See Also:
I_CmsHasPath

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

CmsComparatorPath

public CmsComparatorPath(boolean ascending)
Constructor.

Parameters:
ascending - if true order is ascending
Method Detail

compare

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