Class UUIDv8BroIdGenerator
java.lang.Object
icu.congee.id.generator.broid.BroIdGenerator<UUIDv8BroId>
icu.congee.id.generator.broid.impl.UUIDv8BroIdGenerator
- All Implemented Interfaces:
IdGenerator
-
Constructor Summary
ConstructorsConstructorDescriptionUUIDv8BroIdGenerator(BroIdLayout layout, Function<List<Boolean>, UUIDv8BroId> constructor) 构造函数 -
Method Summary
Modifier and TypeMethodDescriptiongenerate()生成一个唯一标识符。static UUIDv8BroIdGeneratoridType()获取当前生成器的标识符类型Methods inherited from class icu.congee.id.generator.broid.BroIdGenerator
nextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface icu.congee.id.base.IdGenerator
generate
-
Constructor Details
-
UUIDv8BroIdGenerator
public UUIDv8BroIdGenerator() -
UUIDv8BroIdGenerator
构造函数- Parameters:
layout- BroId结构constructor- T类型的构造器引用
-
-
Method Details
-
getInstance
-
generate
Description copied from interface:IdGenerator生成一个唯一标识符。 每个实现类都应该根据其特定的生成策略来实现此方法。- Specified by:
generatein interfaceIdGenerator- Returns:
- 生成的唯一标识符,具体类型由实现类决定
-
idType
Description copied from interface:IdGenerator获取当前生成器的标识符类型此方法用于标识生成器使用的具体ID生成策略。每个实现类都应该 返回一个对应其生成策略的IdType枚举值。
- Specified by:
idTypein interfaceIdGenerator- Returns:
- 当前生成器的标识符类型
-