mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 01:35:17 +08:00
Modify add argument generics method in GenericClass
This commit is contained in:
@@ -30,10 +30,18 @@ class GenericClass internal constructor(private val type: ParameterizedType)
|
||||
fun argument(index: Int): Class<*>
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
inline fun <reified T> argument(index: Int): Class<T>
|
||||
```
|
||||
|
||||
**Change Records**
|
||||
|
||||
`v1.1.0` `added`
|
||||
|
||||
`v1.1.5` `modified`
|
||||
|
||||
新增泛型返回值 `Class<T>` 方法
|
||||
|
||||
**Function Illustrate**
|
||||
|
||||
> 获得泛型参数数组下标的 `Class` 实例。
|
@@ -22,10 +22,18 @@ class GenericClass internal constructor(private val type: ParameterizedType)
|
||||
fun argument(index: Int): Class<*>
|
||||
```
|
||||
|
||||
```kotlin:no-line-numbers
|
||||
inline fun <reified T> argument(index: Int): Class<T>
|
||||
```
|
||||
|
||||
**变更记录**
|
||||
|
||||
`v1.1.0` `新增`
|
||||
|
||||
`v1.1.5` `修改`
|
||||
|
||||
新增泛型返回值 `Class<T>` 方法
|
||||
|
||||
**功能描述**
|
||||
|
||||
> 获得泛型参数数组下标的 `Class` 实例。
|
Reference in New Issue
Block a user