Package org.springframework.util
Class JdkIdGenerator
java.lang.Object
org.springframework.util.JdkIdGenerator
- All Implemented Interfaces:
IdGenerator
An
IdGenerator
that calls UUID.randomUUID()
.- Since:
- 4.1.5
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JdkIdGenerator
public JdkIdGenerator()
-
-
Method Details
-
generateId
Description copied from interface:IdGenerator
Generate a new identifier.- Specified by:
generateId
in interfaceIdGenerator
- Returns:
- the generated identifier
-