open static fun <T : Any> typeOf(type: Class<T>): TypeOf<T>
Creates an instance of TypeOf for the given Class.
- the parameterized type of the given Class
Return
the TypeOf that captures the generic type of the given Class
open static fun <T : Any> typeOf(type: Type): TypeOf<T>
Creates an instance of TypeOf for the given Type.
- the parameterized type of the given Type
Return
the TypeOf that captures the generic type of the given Type