Package org.javlo.helper.Comparator
Class SmartPageBeanGlobalDateComparator
- java.lang.Object
-
- org.javlo.helper.Comparator.SmartPageBeanGlobalDateComparator
-
- All Implemented Interfaces:
Comparator<SmartPageBean>
public class SmartPageBeanGlobalDateComparator extends Object implements Comparator<SmartPageBean>
compare two element of the menu in Content Date if exist and on modification date else.- Author:
- pvanderm this class is used for sort a array of array
-
-
Constructor Summary
Constructors Constructor Description SmartPageBeanGlobalDateComparator(ContentContext ctx, boolean ascending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SmartPageBean elem1, SmartPageBean elem2)
compare two array of Comparable-
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
-
SmartPageBeanGlobalDateComparator
public SmartPageBeanGlobalDateComparator(ContentContext ctx, boolean ascending)
-
-
Method Detail
-
compare
public int compare(SmartPageBean elem1, SmartPageBean elem2)
compare two array of Comparable- Specified by:
compare
in interfaceComparator<SmartPageBean>
-
-