mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add method
This commit is contained in:
parent
b31b8d6626
commit
b7e46ee63d
@ -3,11 +3,12 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.7.18 (2021-12-14)
|
||||
# 5.7.18 (2021-12-17)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 新增CollStreamUtil.groupKeyValue(pr#479@Gitee)
|
||||
* 【core 】 新增DatePattern.createFormatter(pr#483@Gitee)
|
||||
* 【core 】 增加IdUtil.getSnowflakeNextId(pr#485@Gitee)
|
||||
*
|
||||
### 🐞Bug修复
|
||||
* 【core 】 LineReadWatcher#onModify文件清空判断问题(issue#2013@Github)
|
||||
|
@ -269,6 +269,7 @@ public class IdUtil {
|
||||
* 终端ID 数据中心ID 默认为1
|
||||
*
|
||||
* @return nextId
|
||||
* @since 5.7.18
|
||||
*/
|
||||
public static long getSnowflakeNextId() {
|
||||
return getSnowflake().nextId();
|
||||
@ -279,6 +280,7 @@ public class IdUtil {
|
||||
* 终端ID 数据中心ID 默认为1
|
||||
*
|
||||
* @return nextIdStr
|
||||
* @since 5.7.18
|
||||
*/
|
||||
public static String getSnowflakeNextIdStr() {
|
||||
return getSnowflake().nextIdStr();
|
||||
|
Loading…
x
Reference in New Issue
Block a user