getArgument

fun <T> getArgument(name: String): Optional<T>

Returns the argument for name. It is the caller responsibility to use a type parameter T matching the expected argument type. If not, getArgument may succeed but subsequent calls may fail with ClassCastException.

Return

the argument for name or Optional.Absent if that argument is not present. The return value is automatically cast to T.

Parameters

T

the type of the expected InternalValue. The caller must have knowledge of what Kotlin type to expect for this argument. T