/** * Returns the next monotonic value or empty if an overflow happened while incrementing * the random part of the given previous ULID value. * * @param previousUlid the previous ULID value. * @return the next monotonic value or empty if an overflow happened. */ public Optional<Value> nextStrictlyMonotonicValue(Value previousUlid) { return nextStrictlyMonotonicValue(previousUlid, System.currentTimeMillis()); }
/** * Returns the next monotonic value or empty if an overflow happened while incrementing * the random part of the given previous ULID value. * * @param previousUlid the previous ULID value. * @return the next monotonic value or empty if an overflow happened. */ public Optional<Value> nextStrictlyMonotonicValue(Value previousUlid) { return nextStrictlyMonotonicValue(previousUlid, System.currentTimeMillis()); }