| 程序包 | 说明 |
|---|---|
| tech.ibit.common.collection |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,V> Map<T,List<V>> |
CollectionUtils.grouping(List<V> list,
IdGetter<T,V> idGetter)
按照键分组
|
static <T,V> Map<T,List<V>> |
CollectionUtils.groupingToLinkedMap(List<V> list,
IdGetter<T,V> idGetter)
按照键分组
|
static <T,V> Map<T,V> |
CollectionUtils.toLinkedMap(List<V> list,
IdGetter<T,V> idGetter)
List转LinkedMap
|
static <T,V> Map<T,V> |
CollectionUtils.toMap(List<V> list,
IdGetter<T,V> idGetter)
List转Map
|
Copyright © 2020 IBIT程序猿. All rights reserved.