| Class | Description |
|---|---|
| ConcurrentHashSet<E> |
JDK并没有提供ConcurrenHashSet,考虑到JDK的HashSet也是基于HashMap实现的,因此ConcurrenHashSet也由ConcurrenHashMap完成。
虽然也可以通过Collections.newSetFromMap(new ConcurrentHashMap()),
但声明一个单独的类型,阅读代码时能更清晰的知道set的并发友好性,代码来自JDK的SetFromMap,去除JDK8接口.
|
| MoreLists |
特殊的List类型
|
| MoreMaps |
来自Guava,Netty等的特殊Map类型
|
| MoreQueues |
特殊类型Queue:LIFO的Stack, LRU的Queue
|
| SortedArrayList<E> |
从Jodd整体复制,部分指定了index的操作不支持,如 add(index, element)
修改包括:改进Comparator泛型定义,findInsertionPoint的位移改进
https://github.com/oblac/jodd/blob/master/jodd-core/src/main/java/jodd/util/collection/SortedArrayList.java
An extension of
ArrayList that insures that all of the items
added are sorted. |
Copyright © 2018. All rights reserved.