| 程序包 | 说明 |
|---|---|
| com.ms.tools.core.id | |
| com.ms.tools.core.id.factory.ulid |
| 限定符和类型 | 方法和说明 |
|---|---|
static Ulid |
ID.nextUlid()
创建ULID
|
| 限定符和类型 | 方法和说明 |
|---|---|
Ulid |
UlidFactory.create()
Returns a UUID.
|
Ulid |
UlidFactory.create(long time)
Returns a UUID with a specific time.
|
static Ulid |
Ulid.from(byte[] bytes)
Converts a byte array into a ULID.
|
static Ulid |
Ulid.from(String string)
Converts a canonical string into a ULID.
|
static Ulid |
Ulid.from(UUID uuid)
Converts a UUID into a ULID.
|
static Ulid |
UlidCreator.getMonotonicUlid()
Returns a Monotonic ULID.
|
static Ulid |
UlidCreator.getMonotonicUlid(long time)
Returns a Monotonic ULID with a given time.
|
static Ulid |
UlidCreator.getUlid()
Returns a ULID.
|
static Ulid |
UlidCreator.getUlid(long time)
Returns a ULID with a given time.
|
Ulid |
Ulid.increment()
Returns a new ULID by incrementing the random component of the current ULID.
|
Ulid |
Ulid.toRfc4122()
Converts the ULID into into another ULID that is compatible with UUIDv4.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
Ulid.compareTo(Ulid that)
Compares two ULIDs as unsigned 128-bit integers.
|
| 构造器和说明 |
|---|
Ulid(Ulid ulid)
Creates a new ULID.
|
Copyright © 2024. All rights reserved.