Package ca.uhn.hl7v2.util.idgenerator
Class UUIDGenerator
java.lang.Object
ca.uhn.hl7v2.util.idgenerator.UUIDGenerator
- All Implemented Interfaces:
IDGenerator
ID generator that simply return random UUIDs as message IDs.
- Author:
- Christian Ohr
-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.hl7v2.util.idgenerator.IDGenerator
IDGenerator.Ordered, IDGenerator.OrderedSupport -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UUIDGenerator
public UUIDGenerator()
-
-
Method Details
-
getID
Description copied from interface:IDGeneratorGenerates and returns a new ID. Note: This method must be implemented to be thread-safe.- Specified by:
getIDin interfaceIDGenerator- Returns:
- a new ID.
-