mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
新增peeks函数,为函数式编程提供多样性和更多可能性
This commit is contained in:
parent
6a0bfb7994
commit
d1a16d94ae
@ -270,9 +270,9 @@ public class Opt<T> {
|
|||||||
* <p>属于 {@link #ifPresent}的链式拓展
|
* <p>属于 {@link #ifPresent}的链式拓展
|
||||||
* <p>属于 {@link #peek(Consumer)}的动态拓展
|
* <p>属于 {@link #peek(Consumer)}的动态拓展
|
||||||
*
|
*
|
||||||
* @param actions 值存在时执行的操作,动态参数,可传入数组,当数组为空数组时并不会抛出 {@code NPE}
|
* @param actions 值存在时执行的操作,动态参数,可传入数组,当数组为一个空数组时并不会抛出 {@code NPE}
|
||||||
* @return this
|
* @return this
|
||||||
* @throws NullPointerException 如果值存在,并且传入的操作为 {@code null}
|
* @throws NullPointerException 如果值存在,并且传入的操作集中的元素为 {@code null}
|
||||||
* @author VampireAchao
|
* @author VampireAchao
|
||||||
*/
|
*/
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user