Class DefaultSkuInventoryComparator
- java.lang.Object
-
- com.broadleafcommerce.inventory.service.DefaultSkuInventoryComparator
-
- All Implemented Interfaces:
Comparator<SkuInventory>
public class DefaultSkuInventoryComparator extends Object implements Comparator<SkuInventory>
Helps with sorting lists ofSkuInventory
objects by ID.- Author:
- Kelly Tisdell (ktisdell)
-
-
Constructor Summary
Constructors Constructor Description DefaultSkuInventoryComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(SkuInventory o1, SkuInventory o2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(SkuInventory o1, SkuInventory o2)
- Specified by:
compare
in interfaceComparator<SkuInventory>
-
-