public class ULID extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ULID.Value |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
appendULID(StringBuilder stringBuilder) |
static ULID.Value |
fromBytes(byte[] data) |
ULID.Value |
nextMonotonicValue(ULID.Value previousUlid)
Returns the next monotonic value.
|
ULID.Value |
nextMonotonicValue(ULID.Value previousUlid,
long timestamp)
Returns the next monotonic value.
|
Optional<ULID.Value> |
nextStrictlyMonotonicValue(ULID.Value previousUlid)
Returns the next monotonic value or empty if an overflow happened while incrementing
the random part of the given previous ULID value.
|
Optional<ULID.Value> |
nextStrictlyMonotonicValue(ULID.Value previousUlid,
long timestamp)
Returns the next monotonic value or empty if an overflow happened while incrementing
the random part of the given previous ULID value.
|
String |
nextULID() |
String |
nextULID(long timestamp) |
ULID.Value |
nextValue() |
ULID.Value |
nextValue(long timestamp) |
static ULID.Value |
parseULID(String ulidString) |
public ULID()
public ULID(Random random)
public void appendULID(StringBuilder stringBuilder)
public String nextULID()
public String nextULID(long timestamp)
public ULID.Value nextValue()
public ULID.Value nextValue(long timestamp)
public ULID.Value nextMonotonicValue(ULID.Value previousUlid)
previousUlid - the previous ULID value.public ULID.Value nextMonotonicValue(ULID.Value previousUlid, long timestamp)
previousUlid - the previous ULID value.timestamp - the timestamp of the next ULID value.public Optional<ULID.Value> nextStrictlyMonotonicValue(ULID.Value previousUlid)
previousUlid - the previous ULID value.public Optional<ULID.Value> nextStrictlyMonotonicValue(ULID.Value previousUlid, long timestamp)
previousUlid - the previous ULID value.timestamp - the timestamp of the next ULID value.public static ULID.Value parseULID(String ulidString)
public static ULID.Value fromBytes(byte[] data)
Copyright © 2023. All rights reserved.