nextArgument

abstract fun <T> nextArgument(clazz: Class<T>): @NotNull T(source)

Returns the next argument if it is of type T

Return

The argument of type T if it exists

Parameters

clazz

Class of the requested type

<T>

Type of the requested argument

Throws

In case there is no more arguments to be read