| 程序包 | 说明 |
|---|---|
| org.dromara.stream.core.business.tree | |
| org.dromara.stream.core.lambda.function | |
| org.dromara.stream.core.stream |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T,R extends Comparable<? super R>> |
TreeHelper.of(SerFunc<T,R> idGetter,
SerFunc<T,R> pidGetter,
R pidValue,
SerFunc<T,List<T>> childrenGetter,
SerBiCons<T,List<T>> childrenSetter)
通过提供节点信息构造树先生,此方法用于根节点为Null时
|
static <T,R extends Comparable<? super R>> |
TreeHelper.of(SerFunc<T,R> idGetter,
SerFunc<T,R> pidGetter,
R pidValue,
SerFunc<T,List<T>> childrenGetter,
SerBiCons<T,List<T>> childrenSetter)
通过提供节点信息构造树先生,此方法用于根节点为Null时
|
static <T,R extends Comparable<? super R>> |
TreeHelper.ofMatch(SerFunc<T,R> idGetter,
SerFunc<T,R> pidGetter,
SerPred<T> parentPredicate,
SerFunc<T,List<T>> childrenGetter,
SerBiCons<T,List<T>> childrenSetter)
通过提供节点信息构造树先生,此方法用于自定义(通过第三个参数判断返回True则为祖宗节点)根节点的值
|
static <T,R extends Comparable<? super R>> |
TreeHelper.ofMatch(SerFunc<T,R> idGetter,
SerFunc<T,R> pidGetter,
SerPred<T> parentPredicate,
SerFunc<T,List<T>> childrenGetter,
SerBiCons<T,List<T>> childrenSetter)
通过提供节点信息构造树先生,此方法用于自定义(通过第三个参数判断返回True则为祖宗节点)根节点的值
|
| 限定符和类型 | 方法和说明 |
|---|---|
default SerBiCons<T,U> |
SerBiCons.andThen(SerBiCons<? super T,? super U> after)
Returns a composed
SerBiCons that performs, in sequence, this
operation followed by the after operation. |
default SerBiCons<T,U> |
SerBiCons.andThen(SerBiCons<? super T,? super U> after)
Returns a composed
SerBiCons that performs, in sequence, this
operation followed by the after operation. |
static <T,U> SerBiCons<T,U> |
SerBiCons.multi(SerBiCons<T,U>... consumers)
multi
|
static <T,U> SerBiCons<T,U> |
SerBiCons.multi(SerBiCons<T,U>... consumers)
multi
|
static <T,U> SerBiCons<T,U> |
SerBiCons.nothing()
nothing
|
static <T,U> SerBiCons<T,U> |
SerBiCons.nothing()
nothing
|
| 限定符和类型 | 方法和说明 |
|---|---|
default SerBiCons<T,U> |
SerBiCons.andThen(SerBiCons<? super T,? super U> after)
Returns a composed
SerBiCons that performs, in sequence, this
operation followed by the after operation. |
default SerBiCons<T,U> |
SerBiCons.andThen(SerBiCons<? super T,? super U> after)
Returns a composed
SerBiCons that performs, in sequence, this
operation followed by the after operation. |
static <T,U> SerBiCons<T,U> |
SerBiCons.multi(SerBiCons<T,U>... consumers)
multi
|
static <T,U> SerBiCons<T,U> |
SerBiCons.multi(SerBiCons<T,U>... consumers)
multi
|
| 限定符和类型 | 方法和说明 |
|---|---|
Steam<T> |
Steam.peekIdx(SerBiCons<? super T,Integer> action)
peekIdx.
|
Steam<T> |
Steam.peekIdx(SerBiCons<? super T,Integer> action)
peekIdx.
|
Copyright © 2023 dromara. All rights reserved.