类 SimpleIdGenerator
java.lang.Object
cn.taketoday.util.SimpleIdGenerator
- 所有已实现的接口:
IdGenerator
A simple
IdGenerator that starts at 1, increments up to
Long.MAX_VALUE, and then rolls over.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, TODAY 2021/9/11 17:52
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
-
字段详细资料
-
mostSigBits
private final long mostSigBits -
leastSigBits
-
-
构造器详细资料
-
SimpleIdGenerator
public SimpleIdGenerator() -
SimpleIdGenerator
public SimpleIdGenerator(long mostSigBits)
-
-
方法详细资料
-
generateId
从接口复制的说明:IdGeneratorGenerate a new identifier.- 指定者:
generateId在接口中IdGenerator- 返回:
- the generated identifier
-
getMostSigBits
public long getMostSigBits()
-