klyn.reflection.TypeLoader.typeGenericArgumentCount
method
public static typeGenericArgumentCount(typeName as String) as Int:
Description

Returns the number of concrete generic arguments of a reflected type.

Parameters
ParameterDescription
typeNameReflected concrete type name.
Returns

Number of concrete generic arguments.

Example
import klyn.collections
import klyn.reflection
assert TypeLoader.typeGenericArgumentCount(ArrayList<Int>.type.fullName) == 1