最近在看Java的源代码发现一些看不懂的地方,比如以下代码中:
private TreeSet(SortedMap<E,Object> m) {
this.m = m;
keySet = m.keySet();
}
public TreeSet(Comparator<? super E> c) {
this(new TreeMap<E,Object>(c));
}"SortedMap<E,Object> m"中的"<>"括号不知道什么意思?"Comparator<? super E> c"更不明白。
private TreeSet(SortedMap<E,Object> m) {
this.m = m;
keySet = m.keySet();
}
public TreeSet(Comparator<? super E> c) {
this(new TreeMap<E,Object>(c));
}"SortedMap<E,Object> m"中的"<>"括号不知道什么意思?"Comparator<? super E> c"更不明白。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货