Package org.springframework.util
Class JdkIdGenerator
- java.lang.Object
- org.springframework.util.JdkIdGenerator
- All Implemented Interfaces:
IdGenerator
public class JdkIdGenerator extends Object implements IdGenerator
AnIdGeneratorthat callsUUID.randomUUID().- Since:
- 4.1.5
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description JdkIdGenerator()
Constructor Detail
JdkIdGenerator
public JdkIdGenerator()
Method Detail
generateId
public UUID generateId()
Description copied from interface:IdGeneratorGenerate a new identifier.- Specified by:
generateIdin interfaceIdGenerator- Returns:
- the generated identifier