Henry Wong wrote:
The return type of the method is "Comparator<T>" (a Comparator instance, with a generic of type T). As for what the generic type is, that is a bit more complex. It is determined by the compiler during the method calls, and it is bounded... it is "<T extends Comparable<? super T>>".
Henry
It seems like complex to me yes .. Thanks Henry ...
Correct me if I am wrong ...
T in Comparator should extends Compatable, as Compatable's generic type should be subclass for the same T ?
and in end .. Comparator instance should be return with the specify T.
Regards