docs: 补全 src 全部 Kotlin KDoc 与 Java Javadoc,版本升级至 5.5.1
Gitea Actions Build / Build (push) Canceled after 0s

为所有缺失文档的公开声明补充中文 KDoc/Javadoc(含 exception、json、
springboot、tuple 生成类、MediaType 枚举项及测试),仅插入注释不改代码;
gradle.properties VERSIONS 5.4.4 -> 5.5.1。
This commit is contained in:
2026-11-17 21:07:58 +08:00
parent d0887ea1f7
commit 51eb838a36
148 changed files with 16651 additions and 15 deletions
@@ -44,10 +44,24 @@ object SIO {
return this
}
/**
* 扩展函数:条件不满足时对当前对象执行给定变换函数
*
* @param boolean 条件值,为 true 时直接返回原对象
* @param pd 条件为 false 时执行的变换函数
* @return 原对象或变换后的对象
*/
fun <T> T.ifOr(boolean: Boolean, pd: T.() -> T): T = if (boolean) {
this
} else pd(this)
/**
* 扩展函数:条件满足时对当前对象执行给定变换函数
*
* @param boolean 条件值,为 false 时直接返回原对象
* @param pd 条件为 true 时执行的变换函数
* @return 原对象或变换后的对象
*/
fun <T> T.ifOrElse(boolean: Boolean, pd: T.() -> T): T = if (!boolean) {
this
} else pd(this)