Class PseudoRandomGuidGenerator
- java.lang.Object
-
- jetbrains.buildServer.serverSide.db.PseudoRandomGuidGenerator
-
- All Implemented Interfaces:
GuidGenerator,IdSequence<UUID>
public class PseudoRandomGuidGenerator extends Object implements GuidGenerator
Generates pseudo-random UUIDs version 4. Uses the JRE embedded implementation (in other words, just calls theUUID.randomUUID()).See this Wikipedia article for explanations of different versions of GUIDs.
- Since:
- 9.0
- Author:
- Leonid Bushuev from JetBrains
-
-
Field Summary
-
Fields inherited from interface jetbrains.buildServer.serverSide.db.GuidGenerator
ZERO_GUID
-
-
Constructor Summary
Constructors Constructor Description PseudoRandomGuidGenerator()
-
-
-
Method Detail
-
nextOne
@NotNull public UUID nextOne()
Description copied from interface:IdSequenceProduces the new identifier.- Specified by:
nextOnein interfaceIdSequence<UUID>- Returns:
- the new identifier.
-
-