在JAVA的API中介绍接口Comparable<T>
中写的实现方法是int compareTo(T o)
但在实际中实现方法为public int compareTo(Object o)
请哪位告诉我是API错了还是其中的〈T〉另有意义?意义是什么?因为API中有很多〈T〉的写法