R - The type of resource that was selectedpublic static class ResourceSelectorScriptResult.Builder<R>
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ResourceSelectorScriptResult<R> |
build()
Build a new instance of a
ResourceSelectorScriptResult based on the contents of this builder. |
ResourceSelectorScriptResult.Builder<R> |
withRationale(java.lang.String rationale)
Set the rationale for the selection or lack thereof.
|
ResourceSelectorScriptResult.Builder<R> |
withResource(R resource)
Set the resource that was selected if any.
|
public ResourceSelectorScriptResult.Builder<R> withResource(@Nullable R resource)
resource - The resource that was selected or nullpublic ResourceSelectorScriptResult.Builder<R> withRationale(@Nullable java.lang.String rationale)
rationale - The rationale or null if there was nonepublic ResourceSelectorScriptResult<R> build()
ResourceSelectorScriptResult based on the contents of this builder.ResourceSelectorScriptResult