T
- the type of the class where the element should be buildpublic interface Builder<T> extends Supplier<T>
Builder
is a mutable data container to
create an immutable instance of another type.Modifier and Type | Method and Description |
---|---|
T |
build()
Creates a new instance of T with the values of this builder.
|
default T |
get()
Alias for
build() . |