I read the question about Sort a Map<Key, Value> by values (Java). The second answer mentioned
public static <K, V extends Comparable<? super V>> Map<K, V> sortByValue( Map<K, V> map )
I was confused with the part
<K, V extends Comparable<? super V>>
Can I explain it as "V has to be subclass of any class which implements Comparable interface" ? Or how should I explain it into words?
Does it equivalent to
public static <K, V extends Comparable<V>>
?
Thanks.