Package org.forgerock.util.generator
Interface IdGenerator
- All Known Implementing Classes:
IdGenerator.SequenceUuidIdGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Defines the contract to generate global unique identifiers.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Default implementation of theIdGenerator
that will output some ids based on the following pattern :<uuid> + '-' + an incrementing sequence
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final IdGenerator
The default implementation ofIdGenerator
. -
Method Summary
-
Field Details
-
DEFAULT
The default implementation ofIdGenerator
.
-
-
Method Details
-
generate
String generate()Returns a new globally unique identifier.- Returns:
- a new globally unique identifier.
-