| 程序包 | 说明 |
|---|---|
| com.github.jarvisframework.tool.core.collection |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> void |
CollectionUtils.forEach(Map<K,V> map,
CollectionUtils.KVConsumer<K,V> kvConsumer)
循环遍历Map,使用
CollectionUtils.KVConsumer 接受遍历的每条数据,并针对每条数据做处理和JDK8中的map.forEach不同的是,此方法支持index |
Copyright © 2020. All rights reserved.