Package com.adobe.reef.siren.builder
Class Builder<T>
java.lang.Object
com.adobe.reef.siren.builder.Builder<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
ActionBuilder
,EntityBuilder
,FieldBuilder
,LinkBuilder
Builder
is used to build instances of <T>
from values
configured by the setters.
Builders can be reused, clear()
resets all fields to their default values.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds the instanceT
after validating the values.- Returns:
- Throws:
BuilderException
- if something goes wrong during build
-
clear
Resets all fields to their default values.
-