|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - class of object under constructionpublic interface Builder<T>
Builder interface used to impose consistency on Builder implementations.
| Method Summary | |
|---|---|
T |
build()
Created object, may be null if unset() |
Builder<T> |
reset()
Configure the Builder to produce a default result. |
Builder<T> |
reset(T original)
Configure the Builder to produce a copy of the provided original. |
Builder<T> |
unset()
Configure the Builder to produce null. |
| Method Detail |
|---|
Builder<T> unset()
null.
This method allows a Builder to be used as a placeholder; in its
unset state the build() method will produce null. If
any of the builder methods are used the builder will produce a
result.
nullBuilder<T> reset()
Builder<T> reset(T original)
origional - Original, if null this will behave the same as unset()
T build()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||