add method

This commit is contained in:
looly
2021-12-17 16:39:20 +08:00
parent b31b8d6626
commit b7e46ee63d
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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();