refactor(json): 重构 JSON 转换器体系,新增 reader/writer/judgment 抽象

移除按类型划分的 BaseJson*Converter,统一由 BaseJsonConverter 与
JsonConverterUtils 处理;为 Jackson2/Jackson3 分别实现 JsonReader、
JsonWriter 与 ReaderJudgment,并同步更新 SpringBoot 自动配置与测试。
This commit is contained in:
2026-11-17 20:35:19 +08:00
parent 16da482de7
commit d0887ea1f7
53 changed files with 1721 additions and 1026 deletions
@@ -16,7 +16,7 @@
* ProjectName mingli-utils
* ModuleName mingli-utils.main
* CurrentFile Tuples.kt
* LastUpdate 2026-06-21 10:40:58
* LastUpdate 2026-11-17 20:29:54
* UpdateUser MingLiPro
*/
@@ -25,18 +25,10 @@ package com.mingliqiye.utils.tuple
import java.io.Serializable
abstract class Tuple(val size: Int = 1) : Serializable, Iterable<Any> {
abstract class Tuple(val size: Int = 1) : Serializable, Iterable<Any>, Comparable<Tuple> {
override fun iterator(): Iterator<Any> {
return object : Iterator<Any> {
private var index: Int = 0
override fun next(): Any {
if (!hasNext()) throw NoSuchElementException("element next is None")
return get(index++)
}
override fun hasNext(): Boolean = index < size
}
return toMutableList().iterator()
}
open fun toList(): List<Any> {