Class OrderDefaultComparator
- java.lang.Object
-
- org.craftercms.engine.model.sorting.OrderDefaultComparator
-
- All Implemented Interfaces:
Comparator<SiteItem>
public class OrderDefaultComparator extends Object implements Comparator<SiteItem>
Compares twoSiteItem
s through the "orderDefault_f" model value.- Author:
- Alfonso Vásquez
-
-
Field Summary
Fields Modifier and Type Field Description static float
DEFAULT_ORDER_DEFAULT_VALUE
static String
ORDER_DEFAULT_VALUE_KEY
-
Constructor Summary
Constructors Constructor Description OrderDefaultComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SiteItem siteItem1, SiteItem siteItem2)
protected Float
getOrderDefault(SiteItem siteItem)
-
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
-
-
-
-
Field Detail
-
ORDER_DEFAULT_VALUE_KEY
public static final String ORDER_DEFAULT_VALUE_KEY
- See Also:
- Constant Field Values
-
DEFAULT_ORDER_DEFAULT_VALUE
public static final float DEFAULT_ORDER_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-