public static < T extends List < ? extends U > , U > Comparator < T > canonicalComparator ( Comparator < ? super U > elemComp ) { return new CanonicalComparator <> ( elemComp ) ; }
Retrieves a canonical comparator for the given list type .