O
- the type of Object that is being builtpublic abstract class AbstractAnnotationBuilder<O> extends java.lang.Object implements AnnotationBuilder<O>
AnnotationBuilder
that ensures the object being built is only
built one time.Constructor and Description |
---|
AbstractAnnotationBuilder() |
Modifier and Type | Method and Description |
---|---|
O |
build()
Builds the object and returns it or null.
|
protected abstract O |
doBuild()
Subclasses should implement this to perform the build.
|
O |
getObject()
Gets the object that was built.
|
public final O build() throws java.lang.Exception
AnnotationBuilder
build
in interface AnnotationBuilder<O>
java.lang.Exception
- if an error occurred when building the Objectpublic final O getObject()