E - The type of the executorpublic class CloseChainsComparator<E> extends java.lang.Object implements java.util.Comparator<java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException>>
| Constructor and Description |
|---|
CloseChainsComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException> o1,
java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException> o2) |
static <E> java.util.Map<ArgumentChain<E>,ChainExecutionException> |
getClosest(java.util.Map<ArgumentChain<E>,ChainExecutionException> in)
Sort the given map by the fail reason.
|
public static <E> java.util.Map<ArgumentChain<E>,ChainExecutionException> getClosest(java.util.Map<ArgumentChain<E>,ChainExecutionException> in)
E - The type of the executorin - The map to sortpublic int compare(java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException> o1, java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException> o2)
compare in interface java.util.Comparator<java.util.Map.Entry<ArgumentChain<E>,ChainExecutionException>>