Top Description Constructors Methods
org.springframework.util

public Class JdkIdGenerator

extends Object
implements IdGenerator
Class Inheritance
All Implemented Interfaces
org.springframework.util.IdGenerator
Imports
java.util.UUID

An IdGenerator that calls java.util.UUID#randomUUID().
Author
Rossen Stoyanchev
Since
4.1.5

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public UUID
generateId()

Implements org.springframework.util.IdGenerator.generateId.

Generate a new identifier.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JdkIdGeneratorback to summary
public JdkIdGenerator()

Method Detail

generateIdback to summary
public UUID generateId()

Implements org.springframework.util.IdGenerator.generateId.

Doc from org.springframework.util.IdGenerator.generateId.

Generate a new identifier.

Returns:UUID

the generated identifier

Annotations
@Override