Package io.pravega.common
Interface ObjectBuilder<T>
-
- Type Parameters:
T- Type of the object to build.
public interface ObjectBuilder<T>Defines an object that can build other objects. Usually this is a shadow object that accumulates all the data for an immutable object, and it will instantiate such object with the accumulated data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tbuild()Creates a new instance of the T type (usually with the accumulated data so far).
-
-
-
Method Detail
-
build
T build()
Creates a new instance of the T type (usually with the accumulated data so far).- Returns:
- A new instance.
-
-