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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDefault implementation of theIdGeneratorthat will output some ids based on the following pattern :<uuid> + '-' + an incrementing sequence. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IdGeneratorThe 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.
-