static <K extends Comparable<? super K>,V> | comparingByKey()
Returns a comparator that compares
Map.Entry in natural order on key.
|
K extends Comparable<? super K> means
1. K implements Comparable is ok
2.That if any super class of K has implemented Comparable is OK too!
this makes much convenience