Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个具有以下定义的接口:
public interface genericInterface<E implements Comparable <E>>{ }
我想写一个实现这个接口的类,并提供一个arraylist实现。
public class MyClass<E> implements ***genericInterface<List>{***
但 list 和可比较显然不兼容......我没有任何可比较的选项。我应该写什么来代替?