摘要: HashSet集合保证元素唯一性的源码分析 哈希表的结构为元素为节点的数组。调用对象的hashCode方法获取对象的哈希值 public boolean add(E e) { return map.put(e, PRESENT)==null; } public V put(K key, V valu 阅读全文
posted @ 2021-06-22 09:18 鼬神无悔 阅读(382) 评论(0) 推荐(0)