public class Guid extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
DEFAULT_EPOCH
默认时间戳起始值 2021-08-01 1627747200000L
|
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
bin(long d) |
static String |
dec(long d) |
String |
format(long id) |
long |
getEpoch() |
long |
getMaxSequence() |
long |
getSequence() |
long |
getStartTimestamp() |
long |
getWorkerId() |
static String |
hex(long d) |
static Guid |
newInstance() |
static Guid |
newInstance(GuidNodeStrategy strategy) |
static Guid |
newInstance(GuidNodeStrategy strategy,
long epoch) |
static Guid |
newInstance(int workerBitSize,
int workerNodeId) |
static Guid |
newInstance(int workerBitSize,
int workerNodeId,
long epoch) |
static Guid |
newInstance(long epoch) |
static Guid |
newInstance(String app) |
static Guid |
newInstance(String app,
long epoch) |
long |
next() |
String |
nextBin() |
String |
nextDec() |
String |
nextHex() |
long[] |
parse(long id) |
public static final long DEFAULT_EPOCH
public static Guid newInstance(int workerBitSize, int workerNodeId)
public static Guid newInstance(int workerBitSize, int workerNodeId, long epoch)
public static Guid newInstance()
public static Guid newInstance(long epoch)
public static Guid newInstance(GuidNodeStrategy strategy)
public static Guid newInstance(GuidNodeStrategy strategy, long epoch)
public static String bin(long d)
public static String dec(long d)
public static String hex(long d)
public long getStartTimestamp()
public long next()
public String nextBin()
public String nextDec()
public String nextHex()
public long getWorkerId()
public long getMaxSequence()
public long getSequence()
public long getEpoch()
public long[] parse(long id)
public String format(long id)
Copyright © 2025 fossc. All rights reserved.