public class ULID
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ULID.Value |
| Modifier and Type | Method and Description |
|---|---|
void |
appendULID(java.lang.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.
|
java.util.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.
|
java.util.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.
|
java.lang.String |
nextULID() |
java.lang.String |
nextULID(long timestamp) |
ULID.Value |
nextValue() |
ULID.Value |
nextValue(long timestamp) |
static ULID.Value |
parseULID(java.lang.String ulidString) |
public void appendULID(java.lang.StringBuilder stringBuilder)
public java.lang.String nextULID()
public java.lang.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 java.util.Optional<ULID.Value> nextStrictlyMonotonicValue(ULID.Value previousUlid)
previousUlid - the previous ULID value.public java.util.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(java.lang.String ulidString)
public static ULID.Value fromBytes(byte[] data)