Package org.javlo.helper.Comparator
Class SmartPageBeanVisitComparator
- java.lang.Object
-
- org.javlo.helper.Comparator.SmartPageBeanVisitComparator
-
- All Implemented Interfaces:
Comparator<SmartPageBean>
public class SmartPageBeanVisitComparator extends Object implements Comparator<SmartPageBean>
- Author:
- pvanderm this class is used for sort a array of array
-
-
Constructor Summary
Constructors Constructor Description SmartPageBeanVisitComparator(ContentContext inCtx, boolean ascending)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SmartPageBean elem1, SmartPageBean elem2)
static int
compareVisit(ContentContext ctx, int multiply, SmartPageBean elem1, SmartPageBean elem2)
-
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
-
SmartPageBeanVisitComparator
public SmartPageBeanVisitComparator(ContentContext inCtx, boolean ascending)
-
-
Method Detail
-
compareVisit
public static int compareVisit(ContentContext ctx, int multiply, SmartPageBean elem1, SmartPageBean elem2)
-
compare
public int compare(SmartPageBean elem1, SmartPageBean elem2)
- Specified by:
compare
in interfaceComparator<SmartPageBean>
-
-