generated from mingliqiye/lib-tem
feat(utils): 更新版本号并优化 UUID 功能
- 将项目版本号从 4.0.5 升级到 4.0.6 - 更新 Main.kt 文件,使用 UUID 替代 DateTime - 改进 UUID.kt 中的 equals 方法,支持与 JUUID 类型的比较
This commit is contained in:
parent
cc3156572f
commit
7c3c13e28c
@ -16,10 +16,10 @@
|
||||
# ProjectName mingli-utils
|
||||
# ModuleName mingli-utils
|
||||
# CurrentFile gradle.properties
|
||||
# LastUpdate 2025-09-15 17:24:10
|
||||
# LastUpdate 2025-09-15 18:03:04
|
||||
# UpdateUser MingLiPro
|
||||
#
|
||||
JDKVERSIONS=1.8
|
||||
GROUPSID=com.mingliqiye.utils
|
||||
ARTIFACTID=mingli-utils
|
||||
VERSIONS=4.0.5
|
||||
VERSIONS=4.0.6
|
||||
|
||||
@ -16,18 +16,17 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile Main.kt
|
||||
* LastUpdate 2025-09-15 09:53:43
|
||||
* LastUpdate 2025-09-15 18:02:00
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
package com.mingliqiye.utils
|
||||
|
||||
import com.mingliqiye.utils.springboot.autoconfigure.AutoConfiguration
|
||||
import com.mingliqiye.utils.time.DateTime
|
||||
import com.mingliqiye.utils.uuid.UUID
|
||||
|
||||
fun main() {
|
||||
AutoConfiguration.printBanner()
|
||||
println(DateTime.now())
|
||||
}
|
||||
|
||||
fun test() {
|
||||
println(UUID.of("b5c4579e-921a-11f0-ad12-d7949d0c61b8").equals(UUID.of("b5c4579e-921a-11f0-ad12-d7949d0c61b8")))
|
||||
println(UUID.getV1())
|
||||
}
|
||||
|
||||
@ -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,8 +247,13 @@ class UUID : Serializable {
|
||||
* @return 如果相等返回 true,否则返回 false
|
||||
*/
|
||||
override fun equals(other: Any?): Boolean {
|
||||
if (other is UUID) {
|
||||
return uuid == other.uuid
|
||||
} else if (other is JUUID) {
|
||||
return uuid == other
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算此 UUID 的哈希码。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user