public static < T extends Iterable < U > , U > Comparator < T > lexComparator ( Comparator < U > elemComp ) { return new LexComparator <> ( elemComp ) ; }
Retrieves a lexicographical comparator for the given type .