public interface CorrespondenceComparatorDeducer
This is important in situations where the choice of the API comparison "partner" element cannot be determined without knowing its "neighborhood" in both element forests. A concrete example of this is comparison of overloaded methods.
|Modifier and Type||Method and Description|
Deduces the correspondence comparator and sorts the provided lists so that the comparator, when used to compare the elements for the two lists mutually is consistent.
static CorrespondenceComparatorDeducer naturalOrder()
Comparator<? super Element> sortAndGetCorrespondenceComparator(List<Element> first, List<Element> second)
The collections will contain elements of different types (which is consistent with how
stores the children) and it is assumed that the sorter is able to pick and choose with types of elements it is
able to sort. The collections will be sorted according the natural order of the elements when entering this
first- the first collection of elements
second- the second collection of elements
Copyright © 2014-2020 Lukas Krejci. All Rights Reserved.