| 程序包 | 说明 |
|---|---|
| org.dromara.stream.core.business.tree | |
| org.dromara.stream.core.lambda.function | |
| org.dromara.stream.core.optional |
| 限定符和类型 | 方法和说明 |
|---|---|
List<T> |
TreeHelper.forEach(List<T> list,
SerCons<T> action)
对列表中的元素以及它们的子元素列表进行递归遍历,并在每个元素上执行给定的操作
|
List<T> |
TreeHelper.forEach(List<T> list,
SerCons<T> action)
对列表中的元素以及它们的子元素列表进行递归遍历,并在每个元素上执行给定的操作
|
| 限定符和类型 | 方法和说明 |
|---|---|
default SerCons<T> |
SerCons.andThen(SerCons<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
default SerCons<T> |
SerCons.andThen(SerCons<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
static <T> SerCons<T> |
SerCons.multi(SerCons<T>... consumers)
multi
|
static <T> SerCons<T> |
SerCons.multi(SerCons<T>... consumers)
multi
|
static <T> SerCons<T> |
SerCons.nothing()
nothing
|
static <T> SerCons<T> |
SerCons.nothing()
nothing
|
| 限定符和类型 | 方法和说明 |
|---|---|
default SerCons<T> |
SerCons.andThen(SerCons<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
default SerCons<T> |
SerCons.andThen(SerCons<? super T> after)
Returns a composed
Consumer that performs, in sequence, this
operation followed by the after operation. |
static <T> SerCons<T> |
SerCons.multi(SerCons<T>... consumers)
multi
|
static <T> SerCons<T> |
SerCons.multi(SerCons<T>... consumers)
multi
|
| 限定符和类型 | 方法和说明 |
|---|---|
Sf<T> |
Sf.also(SerCons<T> consumer)
对当前
Sf中所包裹对象进行消费操作无返回值,用于操作非null,否则抛出NPE如为了保证安全操作可以使用mayAlso |
Sf<T> |
Sf.also(SerCons<T> consumer)
对当前
Sf中所包裹对象进行消费操作无返回值,用于操作非null,否则抛出NPE如为了保证安全操作可以使用mayAlso |
Sf<T> |
Sf.mayAlso(SerCons<T> consumer)
对当前
Sf中所包裹对象进行消费操作无返回值,如果所操作对象为null则不进行操作 |
Sf<T> |
Sf.mayAlso(SerCons<T> consumer)
对当前
Sf中所包裹对象进行消费操作无返回值,如果所操作对象为null则不进行操作 |
<U> Opp<T> |
Opp.typeOfPeek(SerCons<U> action)
如果传入的lambda入参类型一致,或者是父类,就执行,目前不支持子泛型
|
<U> Opp<T> |
Opp.typeOfPeek(SerCons<U> action)
如果传入的lambda入参类型一致,或者是父类,就执行,目前不支持子泛型
|
<U> Opp<T> |
Opp.typeOfPeek(Type type,
SerCons<U> action)
如果传入的类型一致,或者是父类,就执行,支持子泛型
|
<U> Opp<T> |
Opp.typeOfPeek(Type type,
SerCons<U> action)
如果传入的类型一致,或者是父类,就执行,支持子泛型
|
Copyright © 2023 dromara. All rights reserved.