| 程序包 | 说明 |
|---|---|
| org.tio.utils.hutool |
特别说明:本包及子包的代码由hutool作者提供
不直接引用hutool的原因主要是减少本项目依赖,减少用户维护pom的烦琐度
hutool项目地址: https://gitee.com/loolly/hutool
再次感谢hutool作者路小磊的大力支持!
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T[] |
ArrayUtil.filter(T[] array,
Editor<T> editor)
过滤
过滤过程通过传入的Editor实现来返回需要的元素内容,这个Editor实现可以实现以下功能: 1、过滤出需要的对象,如果返回null表示这个元素对象抛弃 2、修改元素对象,返回集合中为修改后的对象 |
Copyright © 2019. All rights reserved.