| 程序包 | 说明 |
|---|---|
| com.xiaoleilu.hutool.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
CollectionUtil.forEach(Enumeration<T> enumeration,
CollectionUtil.Consumer<T> consumer)
循环遍历
Enumeration,使用CollectionUtil.Consumer 接受遍历的每条数据,并针对每条数据做处理 |
static <T> void |
CollectionUtil.forEach(Iterator<T> iterator,
CollectionUtil.Consumer<T> consumer)
循环遍历
Iterator,使用CollectionUtil.Consumer 接受遍历的每条数据,并针对每条数据做处理 |
Copyright © 2017. All rights reserved.