Package org.javlo.helper.Comparator
Class MenuElementGlobalDateComparator
- java.lang.Object
-
- org.javlo.helper.Comparator.MenuElementGlobalDateComparator
-
- All Implemented Interfaces:
Comparator<MenuElement>
public class MenuElementGlobalDateComparator extends Object implements Comparator<MenuElement>
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 MenuElementGlobalDateComparator(ContentContext ctx, boolean ascending)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(MenuElement elem1, MenuElement 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
-
MenuElementGlobalDateComparator
public MenuElementGlobalDateComparator(ContentContext ctx, boolean ascending)
-
-
Method Detail
-
compare
public int compare(MenuElement elem1, MenuElement elem2)
compare two array of Comparable- Specified by:
compare
in interfaceComparator<MenuElement>
-
-