随笔分类 - HashMap
摘要:java8 Collectors.toMap value 不能为nulll private static void convert(Class<?> aClass, List<Field> fields, List<Map<String, Object>> list, Object obj) { i
阅读全文
摘要:HashMap 优化% 使用&运算 来实现取模 1.前提条件 值必须是2的幂次方,看java1.8 hashMap源码 final V putVal(int hash, K key, V value, boolean onlyIfAbsent, boolean evict) { Node<K,V>[
阅读全文