2023年11月8日

Set---SortedSet-NavigableSet-TreeSet

摘要: SortedSet 概述 A {@link Set} that further provides a <i>total ordering</i> on its elements.The elements are ordered using their {@linkplain Comparable n 阅读全文

posted @ 2023-11-08 19:05 anpeiyong 阅读(8) 评论(0) 推荐(0) 编辑

Map---SortedMap-NavigableMap-TreeMap

摘要: SortedMap 概述 A {@link Map} that further provides a <em>total ordering</em> on its keys.The map is ordered according to the {@linkplain Comparable natu 阅读全文

posted @ 2023-11-08 16:19 anpeiyong 阅读(16) 评论(0) 推荐(0) 编辑

Set---HashSet

摘要: 概述 This class implements the <tt>Set</tt> interface, backed by a hash table (actually a <tt>HashMap</tt> instance). It makes no guarantees as to the i 阅读全文

posted @ 2023-11-08 11:27 anpeiyong 阅读(5) 评论(0) 推荐(0) 编辑

Map---HashMap---jdk8

摘要: 总结 为什么取模运算只需要看对应二进制的后几位? 比如,a % b 正常取模,只需要看 a - b*n,只需要看 <b的值; 换算成 二进制, b 是 2的几次方, HashMap的key有什么要求? 需要实现 equals和hashcode 方法; Hash函数是怎么实现的? static fin 阅读全文

posted @ 2023-11-08 10:23 anpeiyong 阅读(11) 评论(0) 推荐(0) 编辑

导航