T
- Type of the built instance@FunctionalInterface
public interface Builder<T>
This interface is similar to Supplier
as it provides an instance, only for classes that act
as instance builders (fluent API builder pattern), where method Supplier.get()
would be
misleading.
Modifier and Type | Method | Description |
---|---|---|
T |
build() |
Build the instance from this builder.
|
T build()
Copyright © 2018 Oracle Corporation. All rights reserved.