2016年9月22日

Java中的Unsafe

摘要: 在阅读AtomicInteger的源码时,看到了这个类:sum.msic.Unsafe,之前从没见过。所以花了点时间google了一下。 Unsafe的源码:http://www.docjar.com/html/api/sun/misc/Unsafe.java.html Unsafe源码中的... 阅读全文

posted @ 2016-09-22 22:50 爱你一万年123 阅读(191) 评论(0) 推荐(0) 编辑

站在Java的角度看LinkedList

摘要: 站在Java的角度看,玩队列不就是玩对象引用对象嘛! public class LinkedList implements List, Deque { Node first; Node last; int size; public boolean add(E e) { ... 阅读全文

posted @ 2016-09-22 21:25 爱你一万年123 阅读(97) 评论(0) 推荐(0) 编辑

导航