T - the type of the eventual concrete builder implementationO - the type of the object that is being builtpublic abstract class AbstractDataObjectBuilder<T extends AbstractDataObjectBuilder<T,O>,O> extends Object
| Constructor and Description |
|---|
AbstractDataObjectBuilder() |
| Modifier and Type | Method and Description |
|---|---|
abstract O |
build()
Returns the object that has been built.
|
protected abstract T |
getThis()
Returns the current object with the correct builder type.
|
protected void |
prepareBuild()
Checks if the object has already been built, and throws an exception if
yes.
|
public abstract O build()
IllegalStateException - if the object was built alreadyprotected void prepareBuild()
IllegalStateException - if the object was built alreadyprotected abstract T getThis()
Copyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage