R
- The type of resource that was selectedpublic class ResourceSelectorScriptResult<R>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceSelectorScriptResult.Builder<R>
A builder for these the results to prevent scripts from having to redo everything based on constructors if
we change parameters.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getRationale()
Get the rationale for the selection decision.
|
java.util.Optional<R> |
getResource()
Get the selected resource if there was one.
|
public java.util.Optional<R> getResource()
Optional
or Optional.empty()
public java.util.Optional<java.lang.String> getRationale()
Optional
or Optional.empty()