T - the type of the eventual concrete builder implementationO - the type of the object that is being builtEntityDocumentBuilder, ReferenceBuilder, StatementBuilderpublic abstract class AbstractDataObjectBuilder<T extends AbstractDataObjectBuilder<T,O>,O>
extends java.lang.Object
| Constructor | Description |
|---|---|
AbstractDataObjectBuilder() |
| Modifier and Type | Method | 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()
java.lang.IllegalStateException - if the object was built alreadyprotected void prepareBuild()
java.lang.IllegalStateException - if the object was built alreadyprotected abstract T getThis()
Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage