public class GroupList<E> extends Object
| Constructor and Description |
|---|
GroupList(Collection<E> list) |
| Modifier and Type | Method and Description |
|---|---|
<V> Map<V,List<E>> |
group(Function<E,V> mapping)
通过字段提取分组
|
<V> List<E> |
group(Function<E,V> mapping,
Predicate<V> f)
通过字段和值提取分组
|
<V> List<E> |
group(Function<E,V> mapping,
V value)
通过字段和值提取分组
|
static <E> GroupList<E> |
of(Collection<E> list) |
public GroupList(Collection<E> list)
public static <E> GroupList<E> of(Collection<E> list)
public <V> List<E> group(Function<E,V> mapping, V value)
V - Vmapping - 字段value - 值public <V> List<E> group(Function<E,V> mapping, Predicate<V> f)
V - Vmapping - 字段f - PredicateCopyright © 2025. All rights reserved.