Class OrderComparatorWrapper

java.lang.Object
com.foreach.across.modules.web.menu.OrderComparatorWrapper
All Implemented Interfaces:
Comparator<Menu>

public class OrderComparatorWrapper extends Object implements Comparator<Menu>
Wraps around another comparator to first compare based on explicit order value set, but if the order value is the same, the secondary comparator will be used.
  • Constructor Details

    • OrderComparatorWrapper

      public OrderComparatorWrapper(@NonNull @NonNull Comparator<Menu> comparator)
  • Method Details