Package org.springframework.util
Class JdkIdGenerator
- java.lang.Object
- org.springframework.util.JdkIdGenerator
- All Implemented Interfaces:
IdGenerator
public class JdkIdGenerator extends Object implements IdGenerator
AnIdGenerator
that 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:IdGenerator
Generate a new identifier.- Specified by:
generateId
in interfaceIdGenerator
- Returns:
- the generated identifier