T - Type of the built instance@FunctionalInterface
public interface Builder<T>
extends java.util.function.Supplier<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 and Description |
|---|---|
T |
build()
Build the instance from this builder.
|
default T |
get() |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.