This commit is contained in:
Looly 2023-12-16 23:08:18 +08:00
parent bcc5bc6d6c
commit 1ff0dcde0f
4 changed files with 12 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 looly(loolly@aliyun.com)
* Copyright (c) 2023. looly(loolly@aliyun.com)
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
@ -10,9 +10,9 @@
* See the Mulan PSL v2 for more details.
*/
package org.dromara.hutool.core.lang.generator;
package org.dromara.hutool.core.data.id;
import org.dromara.hutool.core.data.id.ObjectId;
import org.dromara.hutool.core.lang.generator.Generator;
/**
* ObjectId生成器

View File

@ -25,6 +25,9 @@ import java.lang.management.ManagementFactory;
* @since 5.8.0
*/
public enum Pid {
/**
* 单例
*/
INSTANCE;
private final int pid;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 looly(loolly@aliyun.com)
* Copyright (c) 2023. looly(loolly@aliyun.com)
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
@ -10,9 +10,9 @@
* See the Mulan PSL v2 for more details.
*/
package org.dromara.hutool.core.lang.generator;
package org.dromara.hutool.core.data.id;
import org.dromara.hutool.core.data.id.Snowflake;
import org.dromara.hutool.core.lang.generator.Generator;
/**
* Snowflake生成器<br>

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 looly(loolly@aliyun.com)
* Copyright (c) 2023. looly(loolly@aliyun.com)
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
@ -10,9 +10,9 @@
* See the Mulan PSL v2 for more details.
*/
package org.dromara.hutool.core.lang.generator;
package org.dromara.hutool.core.data.id;
import org.dromara.hutool.core.data.id.IdUtil;
import org.dromara.hutool.core.lang.generator.Generator;
/**
* UUID生成器