Package | Description |
---|---|
org.dromara.hutool.core.data.id |
提供各种ID生成
|
Modifier and Type | Method and Description |
---|---|
ULID |
ULID.increment()
自增ULID
|
ULID |
ULID.nextMonotonic(long timestamp)
获取下一个有序的ULID
|
static ULID |
ULID.of()
创建一个新的ULID,使用当前系统时间戳和随机数
|
static ULID |
ULID.of(byte[] data)
从bytes解析ULID
|
static ULID |
ULID.of(long timestamp)
创建一个新的ULID,使用指定系统时间戳和随机数
|
static ULID |
ULID.of(long timestamp,
byte[] randomness)
创建一个新的ULID,使用指定系统时间戳和指定填充数
|
static ULID |
ULID.of(long timestamp,
Random random)
创建一个新的ULID,使用指定系统时间戳和指定随机对象
|
static ULID |
ULID.of(String ulidString)
解析一个Crockford`s Base32的ULID
|
Modifier and Type | Method and Description |
---|---|
int |
ULID.compareTo(ULID o) |
Copyright © 2025. All rights reserved.