public static class GenericBuilder.Builder<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
T |
build()
Build the object, after initialising with the instantiator and applying setters.
|
<U> GenericBuilder.Builder<T> |
with(java.util.function.BiConsumer<T,U> consumer,
U value)
Method to supply a setter method with it's value.
|
public <U> GenericBuilder.Builder<T> with(java.util.function.BiConsumer<T,U> consumer, U value)
U
- Value typeconsumer
- Apply value to setter logicvalue
- Valuepublic T build()