源码分析——集合篇Collections.singleton(keys)
Collections.singleton(keys)
public static
return new Collections.SingletonSet(o);
}
SingletonSet(E e) {
this.element = e;
}
private static class SingletonSet
}
通过源码看到SingletonSet并没有实现sortedSet,why?
版权声明:
作者:zhangchen
链接:https://www.techfm.club/p/14297.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。
THE END
二维码
共有 0 条评论