Class BroadleafResourceHttpRequestHandler.OrderedComparator
java.lang.Object
org.broadleafcommerce.common.web.resource.BroadleafResourceHttpRequestHandler.OrderedComparator
- All Implemented Interfaces:
Comparator<Object>
- Enclosing class:
- BroadleafResourceHttpRequestHandler
protected class BroadleafResourceHttpRequestHandler.OrderedComparator
extends Object
implements Comparator<Object>
Items that implement Ordered will sort by the value of
Ordered.getOrder().
Nulls are considered greater except that a getOrder with a value of Integer.MAX_VALUE will always sort at the end (even after nulls).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
OrderedComparator
protected OrderedComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Object>
-