java.lang.Object
io.github.mmm.bean.BeanBuilder<B>
- Type Parameters:
B- type of theWritableBean.
- All Implemented Interfaces:
io.github.mmm.base.lang.Builder<B>
public class BeanBuilder<B extends WritableBean>
extends Object
implements io.github.mmm.base.lang.Builder<B>
Implementation of
Builder for a WritableBean.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static <B extends WritableBean>
BeanBuilder<B> of(B bean) static <B extends WritableBean>
BeanBuilder<B> ofTemplate(B beanTemplate)
-
Constructor Details
-
BeanBuilder
The constructor.- Parameters:
bean- theWritableBeanto "build" (that is actually already there).
-
-
Method Details
-
build
- Specified by:
buildin interfaceio.github.mmm.base.lang.Builder<B extends WritableBean>
-
of
- Type Parameters:
B- type of theWritableBean.- Parameters:
bean- theWritableBeanto "build" (that is actually already there).- Returns:
- the
BeanBuilderinstance.
-
ofTemplate
- Type Parameters:
B- type of theWritableBean.- Parameters:
beanTemplate- theWritableBeanto use as template tocreate a new instance from.- Returns:
- the
BeanBuilderinstance.
-