I tried to add interface Comparable to class SimpleEntry by subclass it. Because SimpleEntry is a generic type, I used this:
public class SimpleEntryComparable<K, V> extends SimpleEntry<K, V> implements
Comparable<T> {
public SimpleEntryComparable(K arg0, V arg1) {
super(arg0, arg1);
// TODO Auto-generated constructor stub
}
}
And eclipse complained "T cannot be resolved to a type". I'm confused about subclass a generic class and add interfaces... anyone can tell me something about this?