📅  最后修改于: 2022-03-11 14:52:48.087000             🧑  作者: Mango
/*In similar way, we can create generic interfaces in java. We can also have multiple type parameters as in Map interface. Again we can provide parameterized value to a parameterized type also, for example new HashMap>(); is valid.*/
package java.lang;
import java.util.*;
public interface Comparable {
public int compareTo(T o);
}