Package | Description |
---|---|
cn.hutool.core.builder |
建造者工具
用于建造特定对象或结果 |
Modifier and Type | Method and Description |
---|---|
static <T> GenericBuilder<T> |
GenericBuilder.of(Supplier<T> instant)
通过无参数实例化器创建GenericBuilder
|
static <T,P1> GenericBuilder<T> |
GenericBuilder.of(Supplier1<T,P1> instant,
P1 p1)
通过1参数实例化器创建GenericBuilder
|
static <T,P1,P2> GenericBuilder<T> |
GenericBuilder.of(Supplier2<T,P1,P2> instant,
P1 p1,
P2 p2)
通过2参数实例化器创建GenericBuilder
|
static <T,P1,P2,P3> |
GenericBuilder.of(Supplier3<T,P1,P2,P3> instant,
P1 p1,
P2 p2,
P3 p3)
通过3参数实例化器创建GenericBuilder
|
static <T,P1,P2,P3,P4> |
GenericBuilder.of(Supplier4<T,P1,P2,P3,P4> instant,
P1 p1,
P2 p2,
P3 p3,
P4 p4)
通过4参数实例化器创建GenericBuilder
|
static <T,P1,P2,P3,P4,P5> |
GenericBuilder.of(Supplier5<T,P1,P2,P3,P4,P5> instant,
P1 p1,
P2 p2,
P3 p3,
P4 p4,
P5 p5)
通过5参数实例化器创建GenericBuilder
|
<P1> GenericBuilder<T> |
GenericBuilder.with(BiConsumer<T,P1> consumer,
P1 p1)
调用1参数方法
|
GenericBuilder<T> |
GenericBuilder.with(Consumer<T> consumer)
调用无参数方法
|
<P1,P2> GenericBuilder<T> |
GenericBuilder.with(Consumer3<T,P1,P2> consumer,
P1 p1,
P2 p2)
调用2参数方法
|
Copyright © 2024. All rights reserved.