ModelRenderable.Builder

public static final class ModelRenderable.Builder

Factory class for ModelRenderable.

Public Constructors

Public Methods

CompletableFuture<T extends Renderable>
build()
Constructs a Renderable with the parameters of the builder.
B extends Builder<T extends Renderable, B>
setRegistryId(Object registryId)
B extends Builder<T extends Renderable, B>
B extends Builder<T extends Renderable, B>
setSource(Context context, Uri sourceUri)
B extends Builder<T extends Renderable, B>
setSource(Context context, Callable<InputStream> inputStreamCreator)
B extends Builder<T extends Renderable, B>
setSource(Context context, int resourceId)

Protected Methods

void
abstract Class<T extends Renderable>
abstract ResourceRegistry<T extends Renderable>
abstract B extends Builder<T extends Renderable, B>
abstract T extends Renderable

Inherited Methods

Public Constructors

public ModelRenderable.Builder ()

Public Methods

public CompletableFuture<T extends Renderable> build ()

Constructs a Renderable with the parameters of the builder.

Returns

public B extends Builder<T extends Renderable, B> setRegistryId (Object registryId)

Parameters
registryId

public B extends Builder<T extends Renderable, B> setSource (RenderableDefinition definition)

Parameters
definition

public B extends Builder<T extends Renderable, B> setSource (Context context, Uri sourceUri)

Parameters
context
sourceUri

public B extends Builder<T extends Renderable, B> setSource (Context context, Callable<InputStream> inputStreamCreator)

Parameters
context
inputStreamCreator

public B extends Builder<T extends Renderable, B> setSource (Context context, int resourceId)

Parameters
context
resourceId

Protected Methods

protected void checkPreconditions ()

protected abstract Class<T extends Renderable> getRenderableClass ()

protected abstract ResourceRegistry<T extends Renderable> getRenderableRegistry ()

protected abstract B extends Builder<T extends Renderable, B> getSelf ()

protected abstract T extends Renderable makeRenderable ()

Send feedback about...