How can I make an interface instance method accept arguments of the same class only, really?

前端 未结 5 974
长情又很酷
长情又很酷 2020-12-11 07:39

This SO discussion proposes the following idiom:

public interface IComparable> {
    int compare(T t);
}
5条回答
提交回复
热议问题