Merge branch 'v5-dev' of github.com:dromara/hutool into v5-dev

This commit is contained in:
Looly 2021-08-01 09:15:18 +08:00
commit a3992452e2
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ public abstract class AbsCollValueMap<K, V, C extends Collection<V>> extends Map
/**
* 默认集合初始大小
*/
protected static final int DEFAULT_COLLCTION_INITIAL_CAPACITY = 3;
protected static final int DEFAULT_COLLECTION_INITIAL_CAPACITY = 3;
// ------------------------------------------------------------------------- Constructor start

View File

@ -68,6 +68,6 @@ public class ListValueMap<K, V> extends AbsCollValueMap<K, V, List<V>> {
@Override
protected List<V> createCollection() {
return new ArrayList<>(DEFAULT_COLLCTION_INITIAL_CAPACITY);
return new ArrayList<>(DEFAULT_COLLECTION_INITIAL_CAPACITY);
}
}

View File

@ -68,6 +68,6 @@ public class SetValueMap<K, V> extends AbsCollValueMap<K, V, Set<V>> {
@Override
protected Set<V> createCollection() {
return new LinkedHashSet<>(DEFAULT_COLLCTION_INITIAL_CAPACITY);
return new LinkedHashSet<>(DEFAULT_COLLECTION_INITIAL_CAPACITY);
}
}

View File

@ -39,7 +39,7 @@ public class SimpleCollector<T, A, R> implements Collector<T, A, R> {
* 只有在并行流且收集器不具备此特性的情况下combiner()返回的lambda表达式才会执行中间结果容器只有一个就无需合并
* 设置此特性时意味着多个线程可以对同一个结果容器调用因此结果容器必须是线程安全的</li>
* <li>UNORDERED 表示流中的元素无序</li>
* <li>IDENTITY_FINISH表示中间结果容器类型与最终结果类型一致设置此特性时finiser()方法不会被调用</li>
* <li>IDENTITY_FINISH表示中间结果容器类型与最终结果类型一致设置此特性时finisher()方法不会被调用</li>
* </ul>
*/
private final Set<Characteristics> characteristics;