@@ -136,8 +136,10 @@ public static TimeBasedEpochGenerator timeBasedEpochGenerator()
136
136
* Factory method for constructing UUID generator that generates UUID using
137
137
* version 7 (Unix Epoch time+random based), using specified {@link Random}
138
138
* number generator.
139
- * Calls within same millisecond produce very similar values what may be
139
+ *<p>
140
+ * NOTE: calls within same millisecond produce very similar values; this may be
140
141
* unsafe in some environments.
142
+ *<p>
141
143
* No additional external synchronization is used.
142
144
*/
143
145
public static TimeBasedEpochGenerator timeBasedEpochGenerator (Random random )
@@ -149,9 +151,11 @@ public static TimeBasedEpochGenerator timeBasedEpochGenerator(Random random)
149
151
* Factory method for constructing UUID generator that generates UUID using
150
152
* version 7 (Unix Epoch time+random based), using specified {@link Random}
151
153
* number generator.
152
- * Timestamp to use is accessed using specified {@link UUIDClock}
153
- * Calls within same millisecond produce very similar values what may be
154
+ * Timestamp to use is accessed using specified {@link UUIDClock}.
155
+ *<p>
156
+ * NOTE: calls within same millisecond produce very similar values; this may be
154
157
* unsafe in some environments.
158
+ *<p>
155
159
* No additional external synchronization is used.
156
160
*
157
161
* @since 4.3
@@ -166,8 +170,13 @@ public static TimeBasedEpochGenerator timeBasedEpochGenerator(Random random,
166
170
* Factory method for constructing UUID generator that generates UUID using
167
171
* version 7 (Unix Epoch time+random based), using specified {@link Random}
168
172
* number generator.
169
- * Calls within same millisecond produce as random as possible values.
173
+ *<p>
174
+ * Calls within same millisecond use additional per-call randomness to try to create
175
+ * more distinct values, compared to {@link #timeBasedEpochGenerator(Random)}
176
+ *<p>
170
177
* No additional external synchronization is used.
178
+ *
179
+ * @since 5.0
171
180
*/
172
181
public static TimeBasedEpochRandomGenerator timeBasedEpochRandomGenerator (Random random )
173
182
{
@@ -177,13 +186,15 @@ public static TimeBasedEpochRandomGenerator timeBasedEpochRandomGenerator(Random
177
186
/**
178
187
* Factory method for constructing UUID generator that generates UUID using
179
188
* version 7 (Unix Epoch time+random based), using specified {@link Random}
180
- * number generato .
189
+ * number generator .
181
190
* Timestamp to use is accessed using specified {@link UUIDClock}
182
- * Calls within same millisecond produce as random as possible values.
183
- *
191
+ *<p>
192
+ * Calls within same millisecond use additional per-call randomness to try to create
193
+ * more distinct values, compared to {@link #timeBasedEpochGenerator(Random)}
194
+ *<p>
184
195
* No additional external synchronization is used.
185
196
*
186
- * @since 4.3
197
+ * @since 5.0
187
198
*/
188
199
public static TimeBasedEpochRandomGenerator timeBasedEpochRandomGenerator (Random random ,
189
200
UUIDClock clock )
0 commit comments