摘要: 使用KeySet和EntrySet遍历的差别 运行多次后,两者差别有2秒左右 结论:使用EntrySet遍历时性能更高。《阿里开发手册》中也推荐使用EntrySet 原因分析:。。。 JDK8中Map interface有个default实现方法forEach, 遍历的也是EntrySet 阅读全文
posted @ 2018-08-02 22:53 funny_coding 阅读(369) 评论(0) 推荐(0) 编辑
build beautiful things, share happiness