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.
|
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.
|
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 Ulid.Value nextStrictlyMonotonicValue(Ulid.Value previousUlid)
previousUlid - the previous ULID value.public 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 © 2022. All rights reserved.