Modifier and Type | Class and Description |
---|---|
static interface |
Builder.Consumer1<T,P1> |
static interface |
Builder.Consumer2<T,P1,P2> |
static interface |
Builder.Consumer3<T,P1,P2,P3> |
static interface |
Builder.Consumer4<T,P1,P2,P3,P4> |
static interface |
Builder.Consumer5<T,P1,P2,P3,P4,P5> |
Modifier and Type | Method and Description |
---|---|
T |
build()
构建
|
static <T> Builder<T> |
of(Supplier<T> instance) |
<P1> Builder<T> |
with(Builder.Consumer1<T,P1> consumer,
P1 p1) |
<P1,P2> Builder<T> |
with(Builder.Consumer2<T,P1,P2> consumer,
P1 p1,
P2 p2) |
<P1,P2,P3> Builder<T> |
with(Builder.Consumer3<T,P1,P2,P3> consumer,
P1 p1,
P2 p2,
P3 p3) |
<P1,P2,P3,P4> |
with(Builder.Consumer4<T,P1,P2,P3,P4> consumer,
P1 p1,
P2 p2,
P3 p3,
P4 p4) |
<P1,P2,P3,P4,P5> |
with(Builder.Consumer5<T,P1,P2,P3,P4,P5> consumer,
P1 p1,
P2 p2,
P3 p3,
P4 p4,
P5 p5) |
public <P1> Builder<T> with(Builder.Consumer1<T,P1> consumer, P1 p1)
public <P1,P2> Builder<T> with(Builder.Consumer2<T,P1,P2> consumer, P1 p1, P2 p2)
public <P1,P2,P3> Builder<T> with(Builder.Consumer3<T,P1,P2,P3> consumer, P1 p1, P2 p2, P3 p3)
public <P1,P2,P3,P4> Builder<T> with(Builder.Consumer4<T,P1,P2,P3,P4> consumer, P1 p1, P2 p2, P3 p3, P4 p4)
public <P1,P2,P3,P4,P5> Builder<T> with(Builder.Consumer5<T,P1,P2,P3,P4,P5> consumer, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
Copyright © 2024. All rights reserved.