getValue

fun getValue(keyword: String): Any?

Returns the value of a named keyword argument using null as the default value that is returned, if this argument is unknown.

Return

the value of the named argument or null

Parameters

keyword

the name of the keyword argument

See also

.getValue


fun <T> getValue(keyword: String, clazz: Class<T>): T

Returns the value of a named keyword argument using null as the default value that is returned, if this argument is unknown.

Return

the value of the named argument or null

Parameters

keyword

the name of the keyword argument

clazz

the expected class of the value

See also

.getValue


fun <T> getValue(keyword: String, defaultValue: T): T
fun <T> getValue(keyword: String, clazz: Class<T>, defaultValue: T): T

Returns the value of a named keyword argument. The given default value is returned, if this argument is unknown.

Return

the value of the named argument or the default value

Parameters

keyword

the name of the keyword argument

defaultValue

the value to be returned if the argument is unknown

See also

.getValue