feat(utils): 更新版本号并优化 UUID 功能

- 将项目版本号从 4.0.5 升级到 4.0.6
- 更新 Main.kt 文件,使用 UUID 替代 DateTime
- 改进 UUID.kt 中的 equals 方法,支持与 JUUID 类型的比较
This commit is contained in:
2025-09-15 18:03:35 +08:00
parent cc3156572f
commit 7c3c13e28c
3 changed files with 13 additions and 9 deletions
@@ -16,7 +16,7 @@
* ProjectName mingli-utils
* ModuleName mingli-utils.main
* CurrentFile UUID.kt
* LastUpdate 2025-09-14 22:38:51
* LastUpdate 2025-09-15 18:01:30
* UpdateUser MingLiPro
*/
package com.mingliqiye.utils.uuid
@@ -247,7 +247,12 @@ class UUID : Serializable {
* @return 如果相等返回 true,否则返回 false
*/
override fun equals(other: Any?): Boolean {
return uuid == other
if (other is UUID) {
return uuid == other.uuid
} else if (other is JUUID) {
return uuid == other
}
return false
}
/**