E - The type of the executorpublic class CloseChainsComparator<E> extends java.lang.Object implements java.util.Comparator<ParseResult.FailedChain<E>>
| Constructor and Description |
|---|
CloseChainsComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ParseResult.FailedChain<E> o1,
ParseResult.FailedChain<E> o2) |
static <E> java.util.List<ParseResult.FailedChain<E>> |
getClosest(java.util.List<ParseResult.FailedChain<E>> in)
Sort the given list of failed chains by their reason.
|
public static <E> java.util.List<ParseResult.FailedChain<E>> getClosest(java.util.List<ParseResult.FailedChain<E>> in)
E - The type of the executorin - The list to sortpublic int compare(ParseResult.FailedChain<E> o1, ParseResult.FailedChain<E> o2)
compare in interface java.util.Comparator<ParseResult.FailedChain<E>>