Package org.springframework.util
Interface IdGenerator
- All Known Implementing Classes:
AlternativeJdkIdGenerator
,JdkIdGenerator
,SimpleIdGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract for generating universally unique identifiers (
UUIDs
).- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Method Summary
-
Method Details
-
generateId
UUID generateId()Generate a new identifier.- Returns:
- the generated identifier
-