|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of built objectpublic interface ReusableBuilder<T>
A ReusableBuilder is a Builder whose build() method
can be invoked more than once, thus the same builder can be used to more than
one object
| Method Summary | |
|---|---|
T |
build()
Returns the built object. |
| Method Detail |
|---|
T build()
throws ObjectUnderConstructionException
This method may be invoked more than once. Thus, it will never throw a
BuilderAlreadyUsedException
If the built object of type T is modifiable, invocations to this method must return always new instances of the object under construction. Otherwise, and if configuration has not changed between two different invocation the builder that case, is ok to return the same instance than in the previous invocation, but it is not a requirement.
build in interface Builder<T>ObjectUnderConstructionException - as defined in BuilderBuilder.build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||