添加 Gson 适配器以支持 JSR-310 中常用的类 #57

Merged
ZhouXY108 merged 3 commits from feat/gson-datetime into dev 2025-06-07 01:02:16 +08:00
Owner
  • 新增 JSR310TypeAdapters,包含 InstantTypeAdapterLocalDateTimeTypeAdapterLocalDateTypeAdapterZonedDateTimeTypeAdapter
  • 将 Gson 作为可选依赖
- 新增 `JSR310TypeAdapters`,包含 `InstantTypeAdapter`、`LocalDateTimeTypeAdapter`、`LocalDateTypeAdapter` 和 `ZonedDateTimeTypeAdapter` - 将 Gson 作为可选依赖
ZhouXY108 added 3 commits 2025-06-07 01:01:29 +08:00
- 新增 `LocalDateTimeTypeAdapter`、`LocalDateTypeAdapter` 和 `ZonedDateTimeTypeAdapter`
- 将 Gson 作为可选依赖
`InstantTypeAdapter` 用于 Gson 通过 `DateTimeFormatter#ISO_INSTANT` 序列化和反序列化 `Instant` 类型。
- 将 InstantTypeAdapter、LocalDateTimeTypeAdapter、LocalDateTypeAdapter 和 ZonedDateTimeTypeAdapter 合并到 JSR310TypeAdapters 类中
- 更新包结构,移动适配器到 adapter 子包
- 新增相关包的 javadoc
ZhouXY108 merged commit 336d99d4ba into dev 2025-06-07 01:02:16 +08:00
ZhouXY108 deleted branch feat/gson-datetime 2025-06-07 01:02:16 +08:00
Sign in to join this conversation.
No description provided.