Added code usage sample in MethodFinder and ConstructorFinder

This commit is contained in:
2022-09-11 23:01:45 +08:00
parent 43c3b676eb
commit 42462938c3
2 changed files with 12 additions and 0 deletions

View File

@@ -149,6 +149,12 @@ class ConstructorFinder @PublishedApi internal constructor(
*
* 你可以不使用 [param] 指定参数类型而是仅使用此方法指定参数个数范围
*
* 使用示例如下 ↓
*
* ```kotlin
* paramCount(1..5)
* ```
*
* - ❗存在多个 [BaseFinder.IndexTypeCondition] 时除了 [order] 只会生效最后一个
* @param numRange 个数范围
* @return [BaseFinder.IndexTypeCondition]

View File

@@ -207,6 +207,12 @@ class MethodFinder @PublishedApi internal constructor(
*
* 你可以不使用 [param] 指定参数类型而是仅使用此方法指定参数个数范围
*
* 使用示例如下 ↓
*
* ```kotlin
* paramCount(1..5)
* ```
*
* - ❗存在多个 [BaseFinder.IndexTypeCondition] 时除了 [order] 只会生效最后一个
* @param numRange 个数范围
* @return [BaseFinder.IndexTypeCondition]