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.
@FunctionalInterface public interface IdGenerator
Defines the contract to generate global unique identifiers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IdGenerator.SequenceUuidIdGenerator
Default implementation of theIdGenerator
that will output some ids based on the following pattern :<uuid> + '-' + an incrementing sequence
.
-
Field Summary
Fields Modifier and Type Field Description static IdGenerator
DEFAULT
The default implementation ofIdGenerator
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
generate()
Returns a new globally unique identifier.
-
-
-
Field Detail
-
DEFAULT
static final IdGenerator DEFAULT
The default implementation ofIdGenerator
.
-
-
Method Detail
-
generate
String generate()
Returns a new globally unique identifier.- Returns:
- a new globally unique identifier.
-
-