Package | Description |
---|---|
org.dromara.hutool.core.collection |
集合以及Iterator封装,包括集合工具CollUtil,Iterator和Iterable工具IterUtil
|
org.dromara.hutool.core.func |
函数封装
接口灵感来自于ActFramework 一个函数接口代表一个一个函数,用于包装一个函数为对象 在JDK8之前,Java的函数并不能作为参数传递,也不能作为返回值存在,此接口用于将一个函数包装成为一个对象,从而传递对象 |
org.dromara.hutool.core.lang.builder |
建造者工具
用于建造特定对象或结果,建造者模式的抽象。 |
org.dromara.hutool.core.map |
Map相关封装,提供特殊Map实现以及Map工具MapUtil
|
org.dromara.hutool.core.map.multi |
多参数类型的Map实现,包括集合类型值的MultiValueMap和Table
MultiValueMap:一个键对应多个值的集合的实现,类似于树的结构。 |
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
CollUtil.forEach(Map<K,V> map,
SerConsumer3<Integer,K,V> kvConsumer)
循环遍历Map,使用
SerConsumer3 接受遍历的每条数据,并针对每条数据做处理和JDK8中的map.forEach不同的是,此方法支持index |
Modifier and Type | Method and Description |
---|---|
default SerConsumer3<P1,P2,P3> |
SerConsumer3.andThen(SerConsumer3<P1,P2,P3> after)
Returns a composed
SerConsumer3 that performs, in sequence, this
operation followed by the after operation. |
Modifier and Type | Method and Description |
---|---|
default SerConsumer3<P1,P2,P3> |
SerConsumer3.andThen(SerConsumer3<P1,P2,P3> after)
Returns a composed
SerConsumer3 that performs, in sequence, this
operation followed by the after operation. |
Modifier and Type | Method and Description |
---|---|
<P1,P2> GenericBuilder<T> |
GenericBuilder.with(SerConsumer3<T,P1,P2> consumer,
P1 p1,
P2 p2)
调用2参数方法
|
Modifier and Type | Method and Description |
---|---|
static <K,V> void |
MapUtil.forEach(Map<K,V> map,
SerConsumer3<Integer,K,V> kvConsumer)
循环遍历Map,使用
SerConsumer3 接受遍历的每条数据,并针对每条数据做处理和JDK8中的map.forEach不同的是,此方法支持index |
Modifier and Type | Method and Description |
---|---|
default void |
Table.forEach(SerConsumer3<? super R,? super C,? super V> consumer)
遍历表格的单元格,处理值
|
Copyright © 2025. All rights reserved.