List of usage examples for org.springframework.util.comparator InvertibleComparator InvertibleComparator
public InvertibleComparator(Comparator<T> comparator, boolean ascending)
From source file:org.synyx.hera.core.OrderAwarePluginRegistry.java
/** * Returns a new {@link OrderAwarePluginRegistry} with the order of the * plugins reverted.//from ww w . j a v a 2 s . c o m * * @return */ @SuppressWarnings("unchecked") public OrderAwarePluginRegistry<T, S> reverse() { return create(plugins, new InvertibleComparator(comparator, false)); }