Package org.springframework.util
Class SimpleIdGenerator
- java.lang.Object
- org.springframework.util.SimpleIdGenerator
- All Implemented Interfaces:
IdGenerator
public class SimpleIdGenerator extends Object implements IdGenerator
A simpleIdGenerator
that starts at 1 and increments by 1 with each call.- Since:
- 4.1.5
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description SimpleIdGenerator()
Constructor Detail
SimpleIdGenerator
public SimpleIdGenerator()
Method Detail
generateId
public UUID generateId()
Description copied from interface:IdGenerator
Generate a new identifier.- Specified by:
generateId
in interfaceIdGenerator
- Returns:
- the generated identifier