摘要: 题记在阅读JDK源码java.util.Collections的时候在UnmodifiableCollection类中看到了这么一段代码: public void forEach(Consumer action) { c.forEach(action); }而Consume... 阅读全文
posted @ 2015-10-15 16:38 Katsura 阅读(2232) 评论(1) 推荐(1) 编辑
摘要: Install the pptp-linux and pptp-linux-client:1 sudo apt-get install pptp-linux pptp-linux-clientCreate a connection config:1 sudo pptpsetup --create [... 阅读全文
posted @ 2015-03-26 13:24 Katsura 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 最近看JDK中的concurrentHashMap类的源码,其中有那么一个函数:/** * Returns a power of two table size for the given desired capacity. * See Hackers Delight, sec 3.2... 阅读全文
posted @ 2014-12-01 12:20 Katsura 阅读(1245) 评论(1) 推荐(1) 编辑