Update UlidFactory.java

This commit is contained in:
Michele Sollecito 2023-07-18 10:05:05 +01:00 committed by GitHub
parent 3ecd6c84a1
commit 9d7f8f87e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -143,8 +143,8 @@ public final class UlidFactory {
/** /**
* Returns a new monotonic factory. * Returns a new monotonic factory.
* *
* @param random a {@link Random} generator * @param random a {@link Random} generator
* @param timeMillisNow a function that returns the current time as milliseconds from epoch * @param timeMillisNow a function that returns the current time as milliseconds from epoch
* @return {@link UlidFactory} * @return {@link UlidFactory}
*/ */
public static UlidFactory newMonotonicInstance(Random random, LongSupplier timeMillisNow) { public static UlidFactory newMonotonicInstance(Random random, LongSupplier timeMillisNow) {
@ -296,7 +296,7 @@ public final class UlidFactory {
} }
public MonotonicFunction(IRandom random, Clock clock) { public MonotonicFunction(IRandom random, Clock clock) {
this(random, clock::millis); this(random, clock::millis);
} }
public MonotonicFunction(IRandom random, LongSupplier timeMillisNow) { public MonotonicFunction(IRandom random, LongSupplier timeMillisNow) {