jdk
文章平均质量分 77
garypotter
这个作者很懒,什么都没留下…
展开
-
jdk源码分析之Collection
package java.util;public interface Collection extends Iterable { // Query Operations /** * Returns the number of elements in this collection. If this collection * contains more原创 2016-05-06 23:10:10 · 286 阅读 · 0 评论 -
jdk源码分析之ConcurrentHashMap
/* * * * * * * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/原创 2016-05-06 23:13:20 · 429 阅读 · 0 评论 -
jdk源码分析之HashMap
package java.util;import java.io.*;//首先是个map,所以继承了AbstractMap,允许null值和null的key。//除了是unsynchronized和允许null之外,与Hashtable基本相同//对顺序不做保证/** * Hash table based implementation of the Map interface. Th原创 2016-05-06 23:16:11 · 311 阅读 · 0 评论 -
jdk源码分析之HashTable
package java.util;import java.io.*;/** * This class implements a hash table, which maps keys to values. Any * non-null object can be used as a key or as a value. * * To successfully store and原创 2016-05-06 23:21:08 · 284 阅读 · 0 评论 -
jdk源码之Map
//key能不能为null?package java.util;/** * An object that maps keys to values. A map cannot contain duplicate keys; * each key can map to at most one value. * * This interface takes the place of th原创 2016-05-06 23:22:34 · 328 阅读 · 0 评论