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

View File

@ -3,11 +3,12 @@
------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------
# 5.7.18 (2021-12-14) # 5.7.18 (2021-12-17)
### 🐣新特性 ### 🐣新特性
* 【core 】 新增CollStreamUtil.groupKeyValuepr#479@Gitee * 【core 】 新增CollStreamUtil.groupKeyValuepr#479@Gitee
* 【core 】 新增DatePattern.createFormatterpr#483@Gitee * 【core 】 新增DatePattern.createFormatterpr#483@Gitee
* 【core 】 增加IdUtil.getSnowflakeNextIdpr#485@Gitee
* *
### 🐞Bug修复 ### 🐞Bug修复
* 【core 】 LineReadWatcher#onModify文件清空判断问题issue#2013@Github * 【core 】 LineReadWatcher#onModify文件清空判断问题issue#2013@Github

View File

@ -269,6 +269,7 @@ public class IdUtil {
* 终端ID 数据中心ID 默认为1 * 终端ID 数据中心ID 默认为1
* *
* @return nextId * @return nextId
* @since 5.7.18
*/ */
public static long getSnowflakeNextId() { public static long getSnowflakeNextId() {
return getSnowflake().nextId(); return getSnowflake().nextId();
@ -279,6 +280,7 @@ public class IdUtil {
* 终端ID 数据中心ID 默认为1 * 终端ID 数据中心ID 默认为1
* *
* @return nextIdStr * @return nextIdStr
* @since 5.7.18
*/ */
public static String getSnowflakeNextIdStr() { public static String getSnowflakeNextIdStr() {
return getSnowflake().nextIdStr(); return getSnowflake().nextIdStr();